Module: Fluent::Plugin::OwnedByMixin

Included in:
Buffer, Formatter, Parser, Storage
Defined in:
lib/fluent/plugin/owned_by_mixin.rb

Instance Method Summary collapse

Instance Method Details

#logObject



34
35
36
37
38
# File 'lib/fluent/plugin/owned_by_mixin.rb', line 34

def log
  if instance_variable_defined?("@log")
    @log
  end
end

#ownerObject



28
29
30
31
32
# File 'lib/fluent/plugin/owned_by_mixin.rb', line 28

def owner
  if instance_variable_defined?("@_owner")
    @_owner
  end
end

#owner=(plugin) ⇒ Object



20
21
22
23
24
25
26
# File 'lib/fluent/plugin/owned_by_mixin.rb', line 20

def owner=(plugin)
  @_owner = plugin

  @_plugin_id = plugin.plugin_id

  @log = plugin.log
end