Class: Flamingo::Logging::Formatter
- Inherits:
-
Logger::Formatter
- Object
- Logger::Formatter
- Flamingo::Logging::Formatter
- Defined in:
- lib/flamingo/logging/formatter.rb
Instance Method Summary collapse
Instance Method Details
#call(severity, time, progname, msg) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/flamingo/logging/formatter.rb', line 4 def call(severity, time, progname, msg) entry = "\n[#{time.utc.strftime("%Y-%m-%d %H:%M:%S")}, #{severity}" entry << ", #{progname}" if progname entry << "] - #{msg2str(msg)}" entry end |