Class: Relaton::Logger::FormatterJSON

Inherits:
Logger::Formatter
  • Object
show all
Defined in:
lib/relaton/logger/formatter_json.rb

Instance Method Summary collapse

Instance Method Details

#call(severity, _datetime, progname, msg, **args) ⇒ Object



3
4
5
6
# File 'lib/relaton/logger/formatter_json.rb', line 3

def call(severity, _datetime, progname, msg, **args)
  hash = { prog: progname, message: msg, severity: severity }.merge(args)
  "#{hash.to_json}\n"
end