Class: LogStashLogger::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) {|_self| ... } ⇒ Configuration

Returns a new instance of Configuration.

Yields:

  • (_self)

Yield Parameters:



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_blockObject

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