Class: MailDiode::UTCFormatter
- Inherits:
-
Logger::Formatter
- Object
- Logger::Formatter
- MailDiode::UTCFormatter
- Defined in:
- lib/util.rb
Instance Method Summary collapse
- #call(severity, time, progname, msg) ⇒ Object
-
#initialize ⇒ UTCFormatter
constructor
A new instance of UTCFormatter.
Constructor Details
#initialize ⇒ UTCFormatter
Returns a new instance of UTCFormatter.
26 27 28 |
# File 'lib/util.rb', line 26 def initialize @datetime_format = '%Y-%m-%d %H:%M:%SZ' end |
Instance Method Details
#call(severity, time, progname, msg) ⇒ Object
30 31 32 33 |
# File 'lib/util.rb', line 30 def call(severity, time, progname, msg) time.utc super(severity, time, progname, msg) end |