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.



290
291
292
# File 'lib/zold/commands/node.rb', line 290

def initialize(log)
  @log = log
end

Instance Method Details

#debug(msg) ⇒ Object



298
299
300
# File 'lib/zold/commands/node.rb', line 298

def debug(msg)
  # nothing
end

#debug?Boolean

Returns:

  • (Boolean)


310
311
312
# File 'lib/zold/commands/node.rb', line 310

def debug?
  @log.info?
end

#error(msg) ⇒ Object



302
303
304
# File 'lib/zold/commands/node.rb', line 302

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

#fatal(msg) ⇒ Object



306
307
308
# File 'lib/zold/commands/node.rb', line 306

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

#info(msg) ⇒ Object



294
295
296
# File 'lib/zold/commands/node.rb', line 294

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