class FlatKit::LogFormatter

Constants

DATETIME_FORMAT
FORMAT

Public Class Methods

new() click to toggle source
Calls superclass method
# File lib/flat_kit/logger.rb, line 7
def initialize
  super
  self.datetime_format = DATETIME_FORMAT
end

Public Instance Methods

call(severity, time, progname, msg) click to toggle source
# File lib/flat_kit/logger.rb, line 12
def call(severity, time, progname, msg)
  FORMAT % [format_datetime(time.utc), Process.pid, severity, msg2str(msg)]
end