Class: Upperkut::Logging::DefaultFormatter

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

Instance Method Summary collapse

Instance Method Details

#call(severity, time, _program_name, message) ⇒ Object



8
9
10
11
# File 'lib/upperkut/logging.rb', line 8

def call(severity, time, _program_name, message)
  "upperkut: #{time.utc.iso8601(3)} hostname=#{Socket.gethostname} "\
  "pid=#{::Process.pid} severity=#{severity} #{format_message(message)}\n"
end