Class: Shoryuken::Logging::WithoutTimestamp
- Defined in:
- lib/shoryuken/logging/without_timestamp.rb
Overview
A log formatter that excludes timestamps from output. Useful for environments where timestamps are added by external logging systems.
Output format: “pid=PID tid=THREAD_ID CONTEXT SEVERITY: MESSAGE”
Instance Method Summary collapse
-
#call(severity, _time, _program_name, message) ⇒ String
Formats a log message without timestamp information.
Methods inherited from Base
Instance Method Details
#call(severity, _time, _program_name, message) ⇒ String
Formats a log message without timestamp information.
20 21 22 |
# File 'lib/shoryuken/logging/without_timestamp.rb', line 20 def call(severity, _time, _program_name, ) "pid=#{Process.pid} tid=#{tid}#{context} #{severity}: #{}\n" end |