Class: MailyHerald::Logging::Formatter

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

Instance Method Summary collapse

Instance Method Details

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



42
43
44
# File 'lib/maily_herald/logging.rb', line 42

def call(severity, time, program_name, message)
  "#{time.utc.iso8601} #{Process.pid} [Maily##{"%3s" % program_name}] #{severity}: #{message}\n"
end