Class: Pione::Log::SyslogSystemLogger

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

Overview

SyslogSystemLogger is a logger using syslog(“syslog-logger” gem).

Instance Method Summary collapse

Methods inherited from SystemLogger

#level, #level=, of, register

Constructor Details

#initializeSyslogSystemLogger

Returns a new instance of SyslogSystemLogger.



190
191
192
# File 'lib/pione/log/system-log.rb', line 190

def initialize
  @logger = Logger::Syslog.new('pione')
end

Instance Method Details

#debug(msg, pos = caller(1).first) ⇒ Object



198
# File 'lib/pione/log/system-log.rb', line 198

def debug(msg, pos=caller(1).first); @logger.debug(msg); end

#error(msg, pos = caller(1).first) ⇒ Object



195
# File 'lib/pione/log/system-log.rb', line 195

def error(msg, pos=caller(1).first); @logger.error(msg); end

#fatal(msg, pos = caller(1).first) ⇒ Object



194
# File 'lib/pione/log/system-log.rb', line 194

def fatal(msg, pos=caller(1).first); @logger.fatal(msg); end

#info(msg, pos = caller(1).first) ⇒ Object



197
# File 'lib/pione/log/system-log.rb', line 197

def info (msg, pos=caller(1).first); @logger.info(msg) ; end

#queued?Boolean

Returns:

  • (Boolean)


204
205
206
# File 'lib/pione/log/system-log.rb', line 204

def queued?
  false
end

#terminateObject



200
201
202
# File 'lib/pione/log/system-log.rb', line 200

def terminate
  # ignore
end

#warn(msg, pos = caller(1).first) ⇒ Object



196
# File 'lib/pione/log/system-log.rb', line 196

def warn (msg, pos=caller(1).first); @logger.warn(msg) ; end