lib/everything/logger/base.rb
module Everything
class Logger
class Base < ::Logger
DATETIME_PROGNAME_MESSAGE_FORMATTER =
proc { |severity, datetime, progname, msg|
iso8601_time = datetime.utc.iso8601
"#{iso8601_time}: #{progname}: #{msg}\n"
}
def initialize(logdev, progname: nil)
super
self.formatter = DATETIME_PROGNAME_MESSAGE_FORMATTER
end
end
end
end