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
- #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.
248 249 250 |
# File 'lib/zold/commands/node.rb', line 248 def initialize(log) @log = log end |
Instance Method Details
#debug(msg) ⇒ Object
256 257 258 |
# File 'lib/zold/commands/node.rb', line 256 def debug(msg) # nothing end |
#debug? ⇒ Boolean
264 265 266 |
# File 'lib/zold/commands/node.rb', line 264 def debug? @log.info? end |
#fatal(msg) ⇒ Object
260 261 262 |
# File 'lib/zold/commands/node.rb', line 260 def fatal(msg) @log.error(msg) end |
#info(msg) ⇒ Object
252 253 254 |
# File 'lib/zold/commands/node.rb', line 252 def info(msg) @log.debug(msg) end |