class Fluent::Output

Attributes

router[RW]

Public Class Methods

new() click to toggle source
Calls superclass method Fluent::PluginLoggerMixin.new
# File lib/fluent/output.rb, line 65
def initialize
  super
end

Public Instance Methods

configure(conf) click to toggle source
Calls superclass method Fluent::PluginLoggerMixin#configure
# File lib/fluent/output.rb, line 69
def configure(conf)
  super

  if label_name = conf['@label']
    label = Engine.root_agent.find_label(label_name)
    @router = label.event_router
  elsif @router.nil?
    @router = Engine.root_agent.event_router
  end
end
secondary_init(primary) click to toggle source

def emit(tag, es, chain) end

# File lib/fluent/output.rb, line 89
def secondary_init(primary)
  if primary.class != self.class
    $log.warn "type of secondary output should be same as primary output", :primary=>primary.class.to_s, :secondary=>self.class.to_s
  end
end
shutdown() click to toggle source
# File lib/fluent/output.rb, line 83
def shutdown
end
start() click to toggle source
# File lib/fluent/output.rb, line 80
def start
end