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.
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
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 |