class Fluent::Label
Attributes
root_agent[RW]
Public Class Methods
new(name, log:)
click to toggle source
Calls superclass method
Fluent::Agent.new
# File lib/fluent/label.rb, line 21 def initialize(name, log)) super(log: log) @context = name @root_agent = nil end
Public Instance Methods
configure(conf)
click to toggle source
Calls superclass method
Fluent::Agent#configure
# File lib/fluent/label.rb, line 30 def configure(conf) super if conf.elements('match').size == 0 raise ConfigError, "Missing <match> sections in <label #{@context}> section" end end
emit_error_event(tag, time, record, e)
click to toggle source
# File lib/fluent/label.rb, line 38 def emit_error_event(tag, time, record, e) @root_agent.emit_error_event(tag, time, record, e) end
handle_emits_error(tag, es, e)
click to toggle source
# File lib/fluent/label.rb, line 42 def handle_emits_error(tag, es, e) @root_agent.handle_emits_error(tag, es, e) end