Parent

Methods

Class/Module Index [+]

Quicksearch

Fluent::TailInput::TailWatcher::StatWatcher

Public Class Methods

new(path, &callback) click to toggle source
# File lib/fluent/plugin/in_tail.rb, line 254
def initialize(path, &callback)
  @callback = callback
  super(path)
end

Public Instance Methods

on_change(prev, cur) click to toggle source
# File lib/fluent/plugin/in_tail.rb, line 259
def on_change(prev, cur)
  @callback.call
rescue
  # TODO log?
  $log.error $!.to_s
  $log.error_backtrace
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.