Class: LogStash::Inputs::Base

Inherits:
Object
  • Object
show all
Includes:
Config::Mixin
Defined in:
lib/logstash/inputs/base.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Config::Mixin

#config_init, included

Constructor Details

#initialize(params = {}) ⇒ Base

Returns a new instance of Base.



10
11
12
13
14
# File 'lib/logstash/inputs/base.rb', line 10

def initialize(params={})
  config_init(params)
  @logger = Object.new
  def @logger.method_missing(meth, *args, &block) end
end

Instance Attribute Details

#loggerObject

Returns the value of attribute logger.



7
8
9
# File 'lib/logstash/inputs/base.rb', line 7

def logger
  @logger
end

Class Method Details

.method_missing(meth, *args, &block) ⇒ Object



13
# File 'lib/logstash/inputs/base.rb', line 13

def @logger.method_missing(meth, *args, &block) end