diaspora/config/initializers/_splunk_logger.rb
Sarah Mei c8e9225dfb For the love of god, normal Rails logs in test & development.
There's now a setting in app_config.yml, :enable_splunk_logging, which if true outputs godawful machine-readable splunk logs. It's false in test and development, and true elsewhere.
2011-05-14 13:29:54 -07:00

5 lines
158 B
Ruby

if AppConfig[:enable_splunk_logging]
require File.expand_path('../../../lib/log_overrider', __FILE__)
end
Rails.logger.class.send(:include, SplunkLogging)