class Rootage::SyslogLogger
‘SyslogLogger` is a logger using syslog(“syslog-logger” gem).
Public Class Methods
new()
click to toggle source
# File lib/rootage/log.rb, line 191 def initialize @logger = ::Logger::Syslog.new('pione') end
Public Instance Methods
debug(msg, pos=caller(1).first, pid=Process.pid)
click to toggle source
# File lib/rootage/log.rb, line 208 def debug(msg, pos=caller(1).first, pid=Process.pid); @logger.debug(msg); end
error(msg, pos=caller(1).first, pid=Process.pid)
click to toggle source
# File lib/rootage/log.rb, line 205 def error(msg, pos=caller(1).first, pid=Process.pid); @logger.error(msg); end
fatal(msg, pos=caller(1).first, pid=Process.pid)
click to toggle source
# File lib/rootage/log.rb, line 204 def fatal(msg, pos=caller(1).first, pid=Process.pid); @logger.fatal(msg); end
info(msg, pos=caller(1).first, pid=Process.pid)
click to toggle source
# File lib/rootage/log.rb, line 207 def info (msg, pos=caller(1).first, pid=Process.pid); @logger.info(msg) ; end
level=(lv)
click to toggle source
# File lib/rootage/log.rb, line 195 def level=(lv) case lv when :fatal, :error, :warn, :info, :debug @logger.level = lv else raise UnknownLogLevel.new(self.class, :level=, lv) end end
queued?()
click to toggle source
# File lib/rootage/log.rb, line 214 def queued? false end
terminate()
click to toggle source
# File lib/rootage/log.rb, line 210 def terminate # ignore end
warn(msg, pos=caller(1).first, pid=Process.pid)
click to toggle source
# File lib/rootage/log.rb, line 206 def warn (msg, pos=caller(1).first, pid=Process.pid); @logger.warn(msg) ; end