Class: Baha::Log::Formatter
- Inherits:
-
Object
- Object
- Baha::Log::Formatter
- 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
13 14 15 |
# File 'lib/baha/log.rb', line 13 def call(severity, time, progname, msg) Format % [time.strftime('%Y-%m-%d %H:%M:%S.%L'), severity, progname, msg2str(msg)] end |