Class: Baha::Log::Formatter

Inherits:
Object
  • Object
show all
Defined in:
lib/baha/log.rb

Constant Summary collapse

Format =
"%s [%5s] %s -- %s\n"

Instance Method Summary collapse

Instance Method Details

#call(severity, time, progname, msg) ⇒ Object



14
15
16
# File 'lib/baha/log.rb', line 14

def call(severity, time, progname, msg)
  Format % [time.strftime('%Y-%m-%d %H:%M:%S.%L'), severity, progname, msg2str(msg)]
end