Class: LogStashLogger::Configuration
- Inherits:
-
Object
- Object
- LogStashLogger::Configuration
- Defined in:
- lib/logstash-logger/configuration.rb
Instance Attribute Summary collapse
-
#customize_event_block ⇒ Object
Returns the value of attribute customize_event_block.
-
#default_error_logger ⇒ Object
Returns the value of attribute default_error_logger.
-
#max_message_size ⇒ Object
Returns the value of attribute max_message_size.
Instance Method Summary collapse
- #customize_event(&block) ⇒ Object
-
#initialize(*args) {|_self| ... } ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize(*args) {|_self| ... } ⇒ Configuration
Returns a new instance of Configuration.
16 17 18 19 20 21 22 |
# File 'lib/logstash-logger/configuration.rb', line 16 def initialize(*args) @customize_event_block = nil @default_error_logger = Logger.new($stderr) yield self if block_given? self end |
Instance Attribute Details
#customize_event_block ⇒ Object
Returns the value of attribute customize_event_block.
12 13 14 |
# File 'lib/logstash-logger/configuration.rb', line 12 def customize_event_block @customize_event_block end |
#default_error_logger ⇒ Object
Returns the value of attribute default_error_logger.
14 15 16 |
# File 'lib/logstash-logger/configuration.rb', line 14 def default_error_logger @default_error_logger end |
#max_message_size ⇒ Object
Returns the value of attribute max_message_size.
13 14 15 |
# File 'lib/logstash-logger/configuration.rb', line 13 def end |
Instance Method Details
#customize_event(&block) ⇒ Object
24 25 26 |
# File 'lib/logstash-logger/configuration.rb', line 24 def customize_event(&block) @customize_event_block = block end |