Class: ActiveSupport::Logger::SimpleFormatter
- Inherits:
-
Logger::Formatter
- Object
- Logger::Formatter
- ActiveSupport::Logger::SimpleFormatter
- Defined in:
- activesupport/lib/active_support/logger.rb
Overview
Simple formatter which only displays the message.
Instance Method Summary collapse
-
#call(severity, timestamp, progname, msg) ⇒ Object
This method is invoked when a log event occurs.
Instance Method Details
#call(severity, timestamp, progname, msg) ⇒ Object
This method is invoked when a log event occurs
41 42 43 |
# File 'activesupport/lib/active_support/logger.rb', line 41 def call(severity, , progname, msg) "#{String === msg ? msg : msg.inspect}\n" end |