class Sidekiq::Logger::Formatters::JSON

def call(severity, time, program_name, message)

def call(severity, time, program_name, message)
  hash = {
    ts: time.utc.iso8601(3),
    pid: ::Process.pid,
    tid: tid,
    lvl: severity,
    msg: message
  }
  c = Sidekiq::Context.current
  hash["ctx"] = c unless c.empty?
  Sidekiq.dump_json(hash) << "\n"
end