Class: Spider::Logger::Formatter
- Defined in:
- lib/spiderfw/utils/logger.rb
Constant Summary collapse
- Format =
"%s, [%s#%d:%d] %5s -- %s: %s\n"
Instance Method Summary collapse
Instance Method Details
#call(severity, time, progname, msg) ⇒ Object
210 211 212 213 |
# File 'lib/spiderfw/utils/logger.rb', line 210 def call(severity, time, progname, msg) Format % [severity[0..0], format_datetime(time), $$, Thread.current.object_id, severity, progname, msg2str(msg)] end |