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.
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.
14 15 16 17 18 19 |
# File 'lib/logstash-logger/configuration.rb', line 14 def initialize(*args) @customize_event_block = nil 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 |
Instance Method Details
#customize_event(&block) ⇒ Object
21 22 23 |
# File 'lib/logstash-logger/configuration.rb', line 21 def customize_event(&block) @customize_event_block = block end |