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
20 21 22 |
# File 'opal/stdlib/logger.rb', line 20 def call(severity, time, progname, msg) format(MESSAGE_FORMAT, severity.chr, time.strftime(DATE_TIME_FORMAT), severity, progname, (msg)) end |