Class: Logger::SimpleFormatter

Inherits:
Formatter show all
Defined in:
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



115
116
117
# File 'lib/active_support/core_ext/logger.rb', line 115

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