class Logger

Ruby on Rails 2.3.18

Since v2.2.3 Last seen in v4.0.13

Available in: v2.2.3 v2.3.18 v3.0.20 v3.1.12 v3.2.22.5 v4.0.13

Adds the ‘around_level’ method to Logger.

Extensions to the built in Ruby logger.

If you want to use the default log formatter as defined in the Ruby core, then you will need to set the formatter for the logger as in:

logger.formatter = Formatter.new

You can then specify the datetime format, for example:

logger.datetime_format = "%Y-%m-%d"

Note: This logger is deprecated in favor of ActiveSupport::BufferedLogger

Inherits from

Object

Namespace

Classes

Methods (defined here)

Private methods

(6) Implementation detail — not part of the public API.

Methods (inherited)

From Object (37)
From Benchmark (2)

Type at least 2 characters to search.

↑↓ navigate · open · esc close