Class: Shoryuken::Logging::Pretty
- Defined in:
- lib/shoryuken/logging/pretty.rb
Overview
A pretty log formatter that includes timestamps, process ID, thread ID, context information, and severity in a human-readable format.
Output format: “TIMESTAMP PID TID-THREAD_ID CONTEXT SEVERITY: MESSAGE”
Instance Method Summary collapse
-
#call(severity, time, _program_name, message) ⇒ String
Formats a log message with timestamp and full context information.
Methods inherited from Base
Instance Method Details
#call(severity, time, _program_name, message) ⇒ String
Formats a log message with timestamp and full context information.
20 21 22 |
# File 'lib/shoryuken/logging/pretty.rb', line 20 def call(severity, time, _program_name, ) "#{time.utc.iso8601} #{Process.pid} TID-#{tid}#{context} #{severity}: #{}\n" end |