rails/rails — Issue #4708: config.colorize_logging
Author: jrochkind
Created: 2012-01-26 18:35:50+00:00
State: open

In Rails 3.1, there was `config.colorize_logging`, which is still mentioned in the config guide. http://guides.rubyonrails.org/configuring.html

I had my own code that looked at Rails.application.config.colorize_logging . Previously it ended up by default true in dev and false in production.

In Rails 3.2, Rails.application.config.colorize_logging seems to always be nil by default, unless manually set.

Except AR output is still magically colorized in development but not production.

Is there some other place I can look to hook into current the current setting of colorized logging for Rails, so my extra code can match it's behavior and colorize my own custom logging only when Rails is set to colorize logs?