Sha256: 30415df6ee291c0c707f602d41a3eb1f615796397a5d9c5a5fe8aa5d7b049d5d
Contents?: true
Size: 327 Bytes
Versions: 48
Compression:
Stored size: 327 Bytes
Contents
require "json" unless defined?(JSON) # a simple streaming json logger class Logger::JSONFormatter < Logger::Formatter def call(severity, time, progname, msg) puts JSON.generate( { "progname" => progname, "severity" => severity, "time" => time, "msg" => msg, } ) end end
Version data entries
48 entries across 48 versions & 1 rubygems