Class: ActiveSupport::Logger::SimpleFormatter

Inherits:
Logger::Formatter
  • Object
show all
Includes:
CustomLogger::InstanceMethods
Defined in:
lib/active_support/custom_logger.rb

Instance Method Summary collapse

Methods included from CustomLogger::InstanceMethods

#formatted_timestamp

Instance Method Details

#call_with_formatted_timestamp(severity, timestamp, progname, msg) ⇒ Object



35
36
37
38
# File 'lib/active_support/custom_logger.rb', line 35

def call_with_formatted_timestamp(severity, timestamp, progname, msg)
  msg = "#{formatted_timestamp} #{msg}" if String === msg
  call_without_formatted_timestamp(severity, timestamp, progname, msg)
end