Class: Sidekiq::Logstash::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/sidekiq/logstash/configuration.rb

Overview

Class that allows to configure the gem behaviour.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_depthObject

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_optionsObject

Returns the value of attribute custom_options.



7
8
9
# File 'lib/sidekiq/logstash/configuration.rb', line 7

def custom_options
  @custom_options
end

#filter_argsObject

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_logObject

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_handlerObject

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_causesObject

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