Class: Shoryuken::Logging::Pretty

Inherits:
Base
  • Object
show all
Defined in:
lib/shoryuken/logging.rb

Instance Method Summary collapse

Methods inherited from Base

#context, #tid

Instance Method Details

#call(severity, time, _program_name, message) ⇒ Object

Provide a call() method that returns the formatted message.



21
22
23
# File 'lib/shoryuken/logging.rb', line 21

def call(severity, time, _program_name, message)
  "#{time.utc.iso8601} #{Process.pid} TID-#{tid}#{context} #{severity}: #{message}\n"
end