class Fluent::NoMatchMatch
def emit_events(tag, es)
def emit_events(tag, es) return unless @warn_not_matched # TODO use time instead of num of records c = (@count += 1) if c < 512 if Math.log(c) / Math.log(2) % 1.0 == 0 @log.warn "no patterns matched", tag: tag return end else if c % 512 == 0 @log.warn "no patterns matched", tag: tag return end end @log.on_trace { @log.trace "no patterns matched", tag: tag } end
def initialize(log)
def initialize(log) @log = log @count = 0 @warn_not_matched = true end
def shutdown
def shutdown end
def start
def start end
def suppress_missing_match!
def suppress_missing_match! # for <label @FLUENT_LOG> @warn_not_matched = false end