class GeneValidatorApp::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/genevalidatorapp/logger.rb, line 15 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/genevalidatorapp/logger.rb, line 19 def call(severity, time, _progname, msg) format(Format, format_datetime(time), severity, msg2str(msg)) end