Class: Fluent::Plugin::PrettyJsonFormatter

Inherits:
Formatter
  • Object
show all
Defined in:
lib/fluent/plugin/formatter_pretty_json.rb

Instance Method Summary collapse

Instance Method Details

#configure(conf) ⇒ Object



9
10
11
# File 'lib/fluent/plugin/formatter_pretty_json.rb', line 9

def configure(conf)
  super
end

#format(tag, time, record) ⇒ Object



13
14
15
# File 'lib/fluent/plugin/formatter_pretty_json.rb', line 13

def format(tag, time, record)
  "#{JSON.pretty_generate record}\n"
end