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.



142
143
144
# File 'lib/zold/commands/node.rb', line 142

def initialize(log)
  @log = log
end

Instance Method Details

#debug(msg) ⇒ Object



150
151
152
# File 'lib/zold/commands/node.rb', line 150

def debug(msg)
  # nothing
end

#debug?Boolean

Returns:

  • (Boolean)


158
159
160
# File 'lib/zold/commands/node.rb', line 158

def debug?
  @log.info?
end

#fatal(msg) ⇒ Object



154
155
156
# File 'lib/zold/commands/node.rb', line 154

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

#info(msg) ⇒ Object



146
147
148
# File 'lib/zold/commands/node.rb', line 146

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