123456789_123456789_123456789_123456789_123456789_

Class: ActiveSupport::Logger::SimpleFormatter

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Logger::Formatter
Instance Chain:
self, Logger::Formatter
Inherits: Logger::Formatter
  • ::Object
Defined in: activesupport/lib/active_support/logger.rb

Overview

Simple formatter which only displays the message.

Instance Method Summary

Instance Method Details

#call(severity, timestamp, progname, msg)

This method is invoked when a log event occurs

[ GitHub ]

  
# File 'activesupport/lib/active_support/logger.rb', line 102

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