Class: Terraspace::Logger::Formatter

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

Instance Method Summary collapse

Instance Method Details

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



3
4
5
6
# File 'lib/terraspace/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