lib/logstasher/railtie.rb in logstasher-0.9.0 vs lib/logstasher/railtie.rb in logstasher-1.0.0

- old
+ new

@@ -11,10 +11,11 @@ # Set up the default logging options config.logstasher.controller_enabled = true config.logstasher.mailer_enabled = true config.logstasher.record_enabled = false config.logstasher.view_enabled = true + config.logstasher.job_enabled = true # Try loading the config/logstasher.yml if present env = Rails.env.to_sym || :development config_file = File.expand_path "./config/logstasher.yml" @@ -45,9 +46,10 @@ config.enabled = yml_config[:enabled] if yml_config.key? :enabled config.controller_enabled = yml_config[:controller_enabled] if yml_config.key? :controller_enabled config.mailer_enabled = yml_config[:mailer_enabled] if yml_config.key? :mailer_enabled config.record_enabled = yml_config[:record_enabled] if yml_config.key? :record_enabled config.view_enabled = yml_config[:view_enabled] if yml_config.key? :view_enabled + config.job_enabled = yml_config[:job_enabled] if yml_config.key? :job_enabled # # # This line is optional if you do not want to suppress app logs in your <environment>.log config.suppress_app_log = yml_config[:suppress_app_log] if yml_config.key? :suppress_app_log # # # This line is optional, it allows you to set a custom value for the @source field of the log event