Class: Zold::Node::WebrickLog
- Inherits:
-
Object
- Object
- Zold::Node::WebrickLog
- Defined in:
- lib/zold/commands/node.rb
Overview
Fake logging facility for Webrick
Instance Method Summary collapse
- #debug(msg) ⇒ Object
- #debug? ⇒ Boolean
- #error(msg) ⇒ Object
- #fatal(msg) ⇒ Object
- #info(msg) ⇒ Object
-
#initialize(log) ⇒ WebrickLog
constructor
A new instance of WebrickLog.
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 |