Class: ChupaText::DefaultLogger::Formatter

Inherits:
Object
  • Object
show all
Defined in:
lib/chupa-text/default-logger.rb

Instance Method Summary collapse

Instance Method Details

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



127
128
129
130
131
132
133
134
# File 'lib/chupa-text/default-logger.rb', line 127

def call(severity, time, program_name, message)
  "%s: [%d] %s: %s" % [
    time.iso8601(6),
    Process.pid,
    severity[0, 1],
    format_message(message),
  ]
end