Class: Fluent::TextFormatter::PrettyJsonFormatter

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

Instance Method Summary collapse

Instance Method Details

#configure(conf) ⇒ Object



11
12
13
# File 'lib/fluent/plugin/formatter_pretty_json.rb', line 11

def configure(conf)
  super
end

#format(tag, time, record) ⇒ Object



15
16
17
# File 'lib/fluent/plugin/formatter_pretty_json.rb', line 15

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