Class: ActiveSupport::Logger::SimpleFormatter

Inherits:
Logger::Formatter
  • Object
show all
Defined in:
lib/activesupport/logger.rb

Overview

Simple formatter which only displays the message.

Instance Method Summary collapse

Instance Method Details

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

This method is invoked when a log event occurs



48
49
50
# File 'lib/activesupport/logger.rb', line 48

def call(severity, timestamp, progname, msg)
  "#{(String === msg) ? msg : msg.inspect}\n"
end