class Fluent::TextFormatter::ProcWrappedFormatter

Public Class Methods

new(proc) click to toggle source
# File lib/fluent/formatter.rb, line 233
def initialize(proc)
  @proc = proc
end

Public Instance Methods

configure(conf) click to toggle source
# File lib/fluent/formatter.rb, line 237
def configure(conf)
end
format(tag, time, record) click to toggle source
# File lib/fluent/formatter.rb, line 240
def format(tag, time, record)
  @proc.call(tag, time, record)
end