Class: Sidekiq::Util::Pretty

Inherits:
Logger::Formatter
  • Object
show all
Defined in:
lib/sidekiq/util.rb

Instance Method Summary collapse

Instance Method Details

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

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


12
13
14
# File 'lib/sidekiq/util.rb', line 12

def call(severity, time, program_name, message)
  "#{time.utc.iso8601} #{Process.pid} TID-#{Thread.current.object_id.to_s(36)} #{severity}: #{message}\n"
end