Class: Logger::SimpleFormatter
- Defined in:
- lib/inactive_support/clean_logger.rb
Overview
Simple formatter which only displays the message.
Constant Summary
Constants inherited from Formatter
Instance Attribute Summary
Attributes inherited from Formatter
Instance Method Summary collapse
-
#call(severity, timestamp, progname, msg) ⇒ Object
This method is invoked when a log event occurs.
Methods inherited from Formatter
Constructor Details
This class inherits a constructor from Logger::Formatter
Instance Method Details
#call(severity, timestamp, progname, msg) ⇒ Object
This method is invoked when a log event occurs
97 98 99 |
# File 'lib/inactive_support/clean_logger.rb', line 97 def call(severity, , progname, msg) "#{String === msg ? msg : msg.inspect}\n" end |