Class: Giblog::GiblogFormatter

Inherits:
Object
  • Object
show all
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


9
10
11
# File 'lib/giblish/utils.rb', line 9

def call(severity, datetime, _progname, msg)
  "#{datetime.strftime('%H:%M:%S')} #{severity} - #{msg}\n"
end