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

Returns a new instance of WebrickLog.



129
130
131
# File 'lib/zold/commands/node.rb', line 129

def initialize(log)
  @log = log
end

Instance Method Details

#debug(msg) ⇒ Object



137
138
139
# File 'lib/zold/commands/node.rb', line 137

def debug(msg)
  # nothing
end

#debug?Boolean

Returns:

  • (Boolean)


145
146
147
# File 'lib/zold/commands/node.rb', line 145

def debug?
  @log.info?
end

#fatal(msg) ⇒ Object



141
142
143
# File 'lib/zold/commands/node.rb', line 141

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

#info(msg) ⇒ Object



133
134
135
# File 'lib/zold/commands/node.rb', line 133

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