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



373
374
375
# File 'lib/zold/commands/node.rb', line 373

def initialize(log)
  @log = log
end

Instance Method Details

#debug(msg) ⇒ Object



381
382
383
# File 'lib/zold/commands/node.rb', line 381

def debug(msg)
  # nothing
end

#debug?Boolean



393
394
395
# File 'lib/zold/commands/node.rb', line 393

def debug?
  @log.info?
end

#error(msg) ⇒ Object



385
386
387
# File 'lib/zold/commands/node.rb', line 385

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

#fatal(msg) ⇒ Object



389
390
391
# File 'lib/zold/commands/node.rb', line 389

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

#info(msg) ⇒ Object



377
378
379
# File 'lib/zold/commands/node.rb', line 377

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