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
Returns a new instance of WebrickLog.
287 288 289 |
# File 'lib/zold/commands/node.rb', line 287 def initialize(log) @log = log end |
Instance Method Details
#debug(msg) ⇒ Object
295 296 297 |
# File 'lib/zold/commands/node.rb', line 295 def debug(msg) # nothing end |
#debug? ⇒ Boolean
307 308 309 |
# File 'lib/zold/commands/node.rb', line 307 def debug? @log.info? end |
#error(msg) ⇒ Object
299 300 301 |
# File 'lib/zold/commands/node.rb', line 299 def error(msg) @log.error(msg) end |
#fatal(msg) ⇒ Object
303 304 305 |
# File 'lib/zold/commands/node.rb', line 303 def fatal(msg) @log.error(msg) end |
#info(msg) ⇒ Object
291 292 293 |
# File 'lib/zold/commands/node.rb', line 291 def info(msg) @log.debug(msg) end |