Class: MailDiode::UTCFormatter

Inherits:
Logger::Formatter
  • Object
show all
Defined in:
lib/util.rb

Instance Method Summary collapse

Constructor Details

#initializeUTCFormatter

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