class SequenceServer::Logger::Formatter
We change Logging format so that it is consistent with Sinatra’s
Constants
- FORMAT
Public Class Methods
new()
click to toggle source
# File lib/sequenceserver/logger.rb, line 16 def initialize self.datetime_format = '%Y-%m-%d %H:%M:%S' end
Public Instance Methods
call(severity, time, _progname, msg)
click to toggle source
# File lib/sequenceserver/logger.rb, line 20 def call(severity, time, _progname, msg) format FORMAT, format_datetime(time), severity, msg2str(msg) end