Class: Logger::Formatter
Constant Summary collapse
- MESSAGE_FORMAT =
"%s, [%s] %5s -- %s: %s\n"
- DATE_TIME_FORMAT =
'%Y-%m-%dT%H:%M:%S.%6N'
Instance Method Summary collapse
Instance Method Details
#call(severity, time, progname, msg) ⇒ Object
18 19 20 |
# File 'opal/stdlib/logger.rb', line 18 def call(severity, time, progname, msg) format(MESSAGE_FORMAT, severity.chr, time.strftime(DATE_TIME_FORMAT), severity, progname, (msg)) end |