Class: HackyHAL::Log::Formatter
- Inherits:
-
Object
- Object
- HackyHAL::Log::Formatter
- Defined in:
- lib/hacky_hal/log.rb
Instance Method Summary collapse
Instance Method Details
#call(severity, time, progname, message) ⇒ Object
11 12 13 14 |
# File 'lib/hacky_hal/log.rb', line 11 def call(severity, time, progname, ) time = time.strftime("%d/%b/%Y %H:%M:%S") "[#{time}] #{severity}: #{}\n" end |