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.
5 lines
158 B
Ruby
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)
|