Class: Sidekiq::Logstash::Configuration
- Inherits:
-
Object
- Object
- Sidekiq::Logstash::Configuration
- Defined in:
- lib/sidekiq/logstash/configuration.rb
Overview
Class that allows to configure the gem behaviour.
Instance Attribute Summary collapse
-
#causes_logging_max_depth ⇒ Object
Returns the value of attribute causes_logging_max_depth.
-
#custom_options ⇒ Object
Returns the value of attribute custom_options.
-
#filter_args ⇒ Object
Returns the value of attribute filter_args.
-
#job_start_log ⇒ Object
Returns the value of attribute job_start_log.
-
#keep_default_error_handler ⇒ Object
Returns the value of attribute keep_default_error_handler.
-
#log_job_exception_with_causes ⇒ Object
Returns the value of attribute log_job_exception_with_causes.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
14 15 16 17 18 19 |
# File 'lib/sidekiq/logstash/configuration.rb', line 14 def initialize @filter_args = [] @job_start_log = false @log_job_exception_with_causes = false @causes_logging_max_depth = 2 end |
Instance Attribute Details
#causes_logging_max_depth ⇒ Object
Returns the value of attribute causes_logging_max_depth.
7 8 9 |
# File 'lib/sidekiq/logstash/configuration.rb', line 7 def causes_logging_max_depth @causes_logging_max_depth end |
#custom_options ⇒ Object
Returns the value of attribute custom_options.
7 8 9 |
# File 'lib/sidekiq/logstash/configuration.rb', line 7 def @custom_options end |
#filter_args ⇒ Object
Returns the value of attribute filter_args.
7 8 9 |
# File 'lib/sidekiq/logstash/configuration.rb', line 7 def filter_args @filter_args end |
#job_start_log ⇒ Object
Returns the value of attribute job_start_log.
7 8 9 |
# File 'lib/sidekiq/logstash/configuration.rb', line 7 def job_start_log @job_start_log end |
#keep_default_error_handler ⇒ Object
Returns the value of attribute keep_default_error_handler.
7 8 9 |
# File 'lib/sidekiq/logstash/configuration.rb', line 7 def keep_default_error_handler @keep_default_error_handler end |
#log_job_exception_with_causes ⇒ Object
Returns the value of attribute log_job_exception_with_causes.
7 8 9 |
# File 'lib/sidekiq/logstash/configuration.rb', line 7 def log_job_exception_with_causes @log_job_exception_with_causes end |