Class: Logger::SimpleFormatter

Inherits:
Formatter show all
Defined in:
lib/gems/activesupport-2.2.2/lib/active_support/core_ext/logger.rb

Overview

Simple formatter which only displays the message.

Constant Summary

Constants inherited from Formatter

Formatter::Format

Instance Attribute Summary

Attributes inherited from Formatter

#datetime_format

Instance Method Summary collapse

Methods inherited from Formatter

#initialize

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



113
114
115
# File 'lib/gems/activesupport-2.2.2/lib/active_support/core_ext/logger.rb', line 113

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