Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
This section includes extensions to the built-in Ruby logger, accessible via the logger property in various Rails contexts such as Active Record models and controller classes. Always accessible via Rails.logger. Use of the logger is explained in Chapter 1.
To use the default log formatter as defined in the Ruby core, you need to set a formatter for the logger as in the following example: