Class: Dumper::Utility::SlimLogger::SlimFormatter
- Inherits:
-
Logger::Formatter
- Object
- Logger::Formatter
- Dumper::Utility::SlimLogger::SlimFormatter
- Defined in:
- lib/dumper/utility/log.rb
Instance Method Summary collapse
-
#call(severity, time, progname, msg) ⇒ Object
This method is invoked when a log event occurs.
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 |