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:


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_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

#default_error_loggerObject

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_sizeObject

Returns the value of attribute max_message_size


13
14
15
# File 'lib/logstash-logger/configuration.rb', line 13

def max_message_size
  @max_message_size
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