Class: Toro::Logging::Formatter

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

Instance Method Summary collapse

Instance Method Details

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


4
5
6
# File 'lib/toro/logging.rb', line 4

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