class JSONFormatter < ActiveSupport::Logger::SimpleFormatter
  def call(severity, timestamp, progname, message)
    {
      type: severity,
      time: timestamp,
      progname: progname,
      message: message
    }.to_json
  end
end
