Class Logger
In: lib/active_support/clean_logger.rb
lib/active_support/core_ext/logger.rb
Parent: Object

Adds the ‘around_level’ method to Logger.

Methods

Classes and Modules

Class Logger::Formatter
Class Logger::SimpleFormatter

External Aliases

datetime_format= -> old_datetime_format=
datetime_format -> old_datetime_format
formatter -> old_formatter
format_message -> old_format_message
format_datetime -> old_format_datetime
msg2str -> old_msg2str

Public Class methods

Public Instance methods

Get the logging datetime format. Returns nil if the formatter does not support datetime formatting.

Logging date-time format (string passed to strftime). Ignored if the formatter does not respond to datetime_format=.

Get the current formatter. The default formatter is a SimpleFormatter which only displays the log message

Silences the logger for the duration of the block.

[Validate]