Class: Slnky::Log::Local
Instance Method Summary collapse
-
#initialize ⇒ Local
constructor
A new instance of Local.
Constructor Details
#initialize ⇒ Local
Returns a new instance of Local.
73 74 75 76 77 78 79 |
# File 'lib/slnky/log.rb', line 73 def initialize super @logger = ::Logger.new(STDOUT) @logger.formatter = proc do |severity, datetime, progname, msg| "%-5s %s: %s: %s\n" % [severity, datetime, Slnky::System.pid, msg] end end |