Class: Picnic::Logger::Formatter
- Inherits:
-
Logger::Formatter
- Object
- Logger::Formatter
- Picnic::Logger::Formatter
- Defined in:
- lib/picnic/logger.rb
Overview
Custom log formatter used by the Picnic Logger.
Constant Summary collapse
- Format =
"[%s#%d] %5s -- %s: %s\n"
Instance Method Summary collapse
Instance Method Details
#call(severity, time, progname, msg) ⇒ Object
35 36 37 38 |
# File 'lib/picnic/logger.rb', line 35 def call(severity, time, progname, msg) Format % [format_datetime(time), $$, severity, progname, msg2str(msg)] end |