Class: LogStash::Inputs::Base
- Inherits:
-
Object
- Object
- LogStash::Inputs::Base
- Includes:
- Config::Mixin
- Defined in:
- lib/logstash/inputs/base.rb
Instance Attribute Summary collapse
-
#logger ⇒ Object
Returns the value of attribute logger.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Base
constructor
A new instance of Base.
Methods included from Config::Mixin
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
#logger ⇒ Object
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 |