Class: Logger::SimpleFormatter

Inherits:
Formatter show all
Defined in:
lib/inactive_support/clean_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



97
98
99
# File 'lib/inactive_support/clean_logger.rb', line 97

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