Class: Zold::Node::WebrickLog

Inherits:
Object
  • Object
show all
Defined in:
lib/zold/commands/node.rb

Overview

Fake logging facility for Webrick

Instance Method Summary collapse

Constructor Details

#initialize(log) ⇒ WebrickLog

Returns a new instance of WebrickLog.



119
120
121
# File 'lib/zold/commands/node.rb', line 119

def initialize(log)
  @log = log
end

Instance Method Details

#debug(msg) ⇒ Object



127
128
129
# File 'lib/zold/commands/node.rb', line 127

def debug(msg)
  # nothing
end

#debug?Boolean

Returns:

  • (Boolean)


135
136
137
# File 'lib/zold/commands/node.rb', line 135

def debug?
  @log.info?
end

#fatal(msg) ⇒ Object



131
132
133
# File 'lib/zold/commands/node.rb', line 131

def fatal(msg)
  @log.error(msg)
end

#info(msg) ⇒ Object



123
124
125
# File 'lib/zold/commands/node.rb', line 123

def info(msg)
  @log.debug(msg)
end