class Fluent::TextFormatter::GELFFormatter

Public Instance Methods

configure(conf) click to toggle source
Calls superclass method
# File lib/fluent/plugin/formatter_gelf.rb, line 15
def configure(conf)
  super(conf)
end
format(tag, time, record) click to toggle source
# File lib/fluent/plugin/formatter_gelf.rb, line 19
def format(tag, time, record)
  gelfentry = make_gelfentry(
    tag,time,record,
    {
      :use_record_host => @use_record_host,
      :add_msec_time => @add_msec_time
    }
  )

  make_json(gelfentry,{})
end