Class: Larynx::Logger

Inherits:
Logger
  • Object
show all
Defined in:
lib/larynx/logger.rb

Instance Method Summary collapse

Instance Method Details

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



3
4
5
6
# File 'lib/larynx/logger.rb', line 3

def format_message(severity, timestamp, progname, msg)
  time = timestamp.strftime("%Y-%m-%dT%H:%M:%S.") << "%06d" % timestamp.usec
  "[%s] %5s: %s\n" % [time, severity, msg]
end