Class: Ufo::Logger::Formatter

Inherits:
Logger::Formatter
  • Object
show all
Defined in:
lib/ufo/logger/formatter.rb

Instance Method Summary collapse

Instance Method Details

#call(severity, time, progname, msg) ⇒ Object



3
4
5
6
# File 'lib/ufo/logger/formatter.rb', line 3

def call(severity, time, progname, msg)
  # careful changing the format. All::Summary uses a regexp on this format to remove the timestamp
  "[#{format_datetime(time)} ##{Process.pid} #{progname}]: #{msg}"
end