Class: Pgbus::LogFormatter::Text
- Inherits:
-
Logger::Formatter
- Object
- Logger::Formatter
- Pgbus::LogFormatter::Text
- Defined in:
- lib/pgbus/log_formatter.rb
Overview
Human-readable text formatter with Pgbus context. Output: “INFO 2024-01-15T10:30:00.000Z pid=1234 tid=abc queue=default: messagen”
Instance Method Summary collapse
Instance Method Details
#call(severity, time, _progname, message) ⇒ Object
44 45 46 |
# File 'lib/pgbus/log_formatter.rb', line 44 def call(severity, time, _progname, ) "#{severity} #{time.utc.iso8601(3)} pid=#{::Process.pid} tid=#{LogFormatter.tid}#{format_context}: #{}\n" end |