Class: PikaQue::Logging::PikaQueFormatter

Inherits:
Logger::Formatter
  • Object
show all
Defined in:
lib/pika_que/logging.rb

Instance Method Summary collapse

Instance Method Details

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



8
9
10
# File 'lib/pika_que/logging.rb', line 8

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