Class: Dumper::Utility::SlimLogger::SlimFormatter

Inherits:
Logger::Formatter
  • Object
show all
Defined in:
lib/dumper/utility/log.rb

Instance Method Summary collapse

Instance Method Details

#call(severity, time, progname, msg) ⇒ Object

This method is invoked when a log event occurs



36
37
38
# File 'lib/dumper/utility/log.rb', line 36

def call(severity, time, progname, msg)
  "[%s (%d)] %5s : %s\n" % [format_datetime(time), $$, severity, msg2str(msg)]
end