Class: ManageIQ::Loggers::Base::Formatter
- Inherits:
-
Logger::Formatter
- Object
- Logger::Formatter
- ManageIQ::Loggers::Base::Formatter
show all
- Defined in:
- lib/manageiq/loggers/base.rb
Constant Summary
collapse
- FORMAT =
"[----] %s, [%s#%d:%x] %5s -- %s: %s\n"
Instance Method Summary
collapse
Instance Method Details
#call(severity, time, progname, msg) ⇒ Object
163
164
165
166
|
# File 'lib/manageiq/loggers/base.rb', line 163
def call(severity, time, progname, msg)
msg = prefix_task_id(msg2str(msg)).truncate(MAX_LOG_LINE_LENGTH)
FORMAT % [severity[0..0], format_datetime(time), $PROCESS_ID, Thread.current.object_id, severity, progname, msg]
end
|