class Fluent::Plugin::LabeledTSVFormatter
Public Instance Methods
format(tag, time, record)
click to toggle source
TODO: escaping for t in values
# File lib/fluent/plugin/formatter_ltsv.rb, line 30 def format(tag, time, record) formatted = "" record.each do |label, value| formatted << @delimiter if formatted.length.nonzero? formatted << "#{label}#{@label_delimiter}#{value}" end formatted << "\n" formatted end