Class: Fluent::Plugin::GelfFormatter

Inherits:
Formatter
  • Object
show all
Includes:
GelfPluginUtil
Defined in:
lib/fluent/plugin/formatter_gelf.rb

Constant Summary

Constants included from GelfPluginUtil

GelfPluginUtil::LEVEL_MAPPING, GelfPluginUtil::SYSLOG_FACILITY

Instance Method Summary collapse

Methods included from GelfPluginUtil

#make_gelfentry, #merge_inner_json

Instance Method Details

#format(tag, time, record) ⇒ Object



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

def format(tag, time, record)
  Yajl::Encoder.encode(make_gelfentry(tag, time, record))
end