Class: Pione::Log::RubyStandardSystemLogger

Inherits:
SystemLogger show all
Defined in:
lib/pione/log/system-log.rb

Overview

StandardSystemLogger is a logger using Ruby standard Logger.

Instance Method Summary collapse

Methods inherited from SystemLogger

#level, #level=, of, register

Constructor Details

#initialize(out = $stdout) ⇒ RubyStandardSystemLogger

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

Returns:

  • (Boolean)


181
182
183
# File 'lib/pione/log/system-log.rb', line 181

def queued?
  false
end

#terminateObject



177
178
179
# File 'lib/pione/log/system-log.rb', line 177

def terminate
  # ignore
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