Class: Slnky::Log::Local

Inherits:
Base
  • Object
show all
Defined in:
lib/slnky/log.rb

Instance Method Summary collapse

Constructor Details

#initializeLocal

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