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



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

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