Class: Ponder::Logger::Twoflogger
- Inherits:
-
Logger
- Object
- Logger
- Ponder::Logger::Twoflogger
- Defined in:
- lib/ponder/logger/twoflogger.rb
Instance Method Summary collapse
-
#initialize(*args) ⇒ Twoflogger
constructor
A new instance of Twoflogger.
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 |