Class: Sneakers::Support::ProductionFormatter

Inherits:
Logger::Formatter
  • Object
show all
Defined in:
lib/sneakers/support/production_formatter.rb

Class Method Summary collapse

Class Method Details

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



5
6
7
# File 'lib/sneakers/support/production_formatter.rb', line 5

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