Class: Logger

Inherits:
Object
  • Object
show all
Defined in:
lib/echi-converter.rb

Instance Method Summary collapse

Instance Method Details

#format_message(severity, timestamp, progname, msg) ⇒ Object

Change the logging format to include a timestamp



13
14
15
# File 'lib/echi-converter.rb', line 13

def format_message(severity, timestamp, progname, msg)
  "#{timestamp} (#{$$}) #{msg}\n" 
end