Class: Giblog::GiblogFormatter
- Inherits:
-
Object
- Object
- Giblog::GiblogFormatter
- Defined in:
- lib/giblish/utils.rb
Overview
Defines the format for log messages from giblish.
Instance Method Summary collapse
Instance Method Details
#call(severity, datetime, _progname, msg) ⇒ Object
10 11 12 |
# File 'lib/giblish/utils.rb', line 10 def call(severity, datetime, _progname, msg) "#{datetime.strftime("%H:%M:%S")} #{severity} - #{msg}\n" end |