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.



254
255
256
# File 'lib/zold/commands/node.rb', line 254

def initialize(log)
  @log = log
end

Instance Method Details

#debug(msg) ⇒ Object



262
263
264
# File 'lib/zold/commands/node.rb', line 262

def debug(msg)
  # nothing
end

#debug?Boolean

Returns:

  • (Boolean)


270
271
272
# File 'lib/zold/commands/node.rb', line 270

def debug?
  @log.info?
end

#fatal(msg) ⇒ Object



266
267
268
# File 'lib/zold/commands/node.rb', line 266

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

#info(msg) ⇒ Object



258
259
260
# File 'lib/zold/commands/node.rb', line 258

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