# File lib/fluent/plugin/formatter_csv.rb, line 33 def configure(conf) super @fields = fields.select{|f| !f.empty? } end
# File lib/fluent/plugin/formatter_csv.rb, line 38 def format(tag, time, record) row = @fields.map do |key| record[key] end CSV.generate_line(row, col_sep: @delimiter, force_quotes: @force_quotes) end