Class: ManageIQ::Loggers::Journald::Formatter
- Inherits:
-
Base::Formatter
- Object
- Logger::Formatter
- Base::Formatter
- ManageIQ::Loggers::Journald::Formatter
- Defined in:
- lib/manageiq/loggers/journald.rb
Constant Summary
Constants inherited from Base::Formatter
Instance Method Summary collapse
Instance Method Details
#call(severity, _time, progname, msg) ⇒ Object
78 79 80 81 |
# File 'lib/manageiq/loggers/journald.rb', line 78 def call(severity, _time, progname, msg) msg = prefix_task_id(msg2str(msg)).truncate(Base::MAX_LOG_LINE_LENGTH) "%5s -- %s: %s\n" % [severity, progname, msg] end |