Class: Pione::Log::RubyStandardSystemLogger
Overview
StandardSystemLogger is a logger using Ruby standard Logger.
Instance Method Summary
collapse
#level, #level=, of, register
Constructor Details
Returns a new instance of RubyStandardSystemLogger.
167
168
169
|
# File 'lib/pione/log/system-log.rb', line 167
def initialize(out = $stdout)
@logger = Logger.new(out)
end
|
Instance Method Details
#debug(msg, pos = caller(1).first) ⇒ Object
175
|
# File 'lib/pione/log/system-log.rb', line 175
def debug(msg, pos=caller(1).first); @logger.debug(msg); end
|
#error(msg, pos = caller(1).first) ⇒ Object
172
|
# File 'lib/pione/log/system-log.rb', line 172
def error(msg, pos=caller(1).first); @logger.error(msg); end
|
#fatal(msg, pos = caller(1).first) ⇒ Object
171
|
# File 'lib/pione/log/system-log.rb', line 171
def fatal(msg, pos=caller(1).first); @logger.fatal(msg); end
|
#info(msg, pos = caller(1).first) ⇒ Object
174
|
# File 'lib/pione/log/system-log.rb', line 174
def info (msg, pos=caller(1).first); @logger.info(msg) ; end
|
#queued? ⇒ Boolean
181
182
183
|
# File 'lib/pione/log/system-log.rb', line 181
def queued?
false
end
|
#terminate ⇒ Object
177
178
179
|
# File 'lib/pione/log/system-log.rb', line 177
def terminate
end
|
#warn(msg, pos = caller(1).first) ⇒ Object
173
|
# File 'lib/pione/log/system-log.rb', line 173
def warn (msg, pos=caller(1).first); @logger.warn(msg) ; end
|