class Logger::Formatter
Default formatter for log messages.
Constants
- DatetimeFormat
- Format
Attributes
datetime_format
[RW]
Public Class Methods
new
()
# File lib/logger/formatter.rb, line 11 def initialize @datetime_format = nil end
Public Instance Methods
call
(severity, time, progname, msg)
# File lib/logger/formatter.rb, line 15 def call(severity, time, progname, msg) sprintf(Format, severity, format_datetime(time), Process.pid, severity, progname, msg2str(msg)) end