Class: Ponder::Logger::Twoflogger

Inherits:
Logger
  • Object
show all
Defined in:
lib/ponder/logger/twoflogger.rb

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Twoflogger

Returns a new instance of Twoflogger.



6
7
8
9
10
11
# File 'lib/ponder/logger/twoflogger.rb', line 6

def initialize(*args)
  super(*args)
  self.formatter = proc do |severity, datetime, progname, msg|
    "#{severity} #{datetime.strftime('%Y-%m-%d %H:%M:%S')} #{msg}\n"
  end
end