Sha256: 06018daa0736c354560678abc30040d4ebe5b91c13e1b5c8bcaf2093de21e3c0
Contents?: true
Size: 379 Bytes
Versions: 23
Compression:
Stored size: 379 Bytes
Contents
module SequenceServer # We change Logging format so that it is consistent with Sinatra's class SinatraLikeLogFormatter < Logger::Formatter MyFormat = "[%s] %s %s\n" def initialize self.datetime_format = "%Y-%m-%d %H:%M:%S" end def call(severity, time, progname, msg) MyFormat % [format_datetime(time), severity, msg2str(msg)] end end end
Version data entries
23 entries across 23 versions & 2 rubygems