Sha256: 2c4572b86cee5de1a8cabb049e524da69251a8aabfa78376d05170ef4ac1a7a9
Contents?: true
Size: 302 Bytes
Versions: 1
Compression:
Stored size: 302 Bytes
Contents
class Brogger class TimestampFormatter < ::Logger::Formatter def call(severity, time, progname, msg) format % [ time.utc.iso8601, progname, $$, severity, msg2str(msg) ] end def format "%s [%s.%d] %5s: %s\n" end def msg2str(*) super.strip end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
brogger-0.1.0 | lib/brogger/timestamp_formatter.rb |