Class: Fluent::TextFormatter::GELFFormatter
- Inherits:
-
Formatter
- Object
- Formatter
- Fluent::TextFormatter::GELFFormatter
show all
- Includes:
- GelfUtil
- Defined in:
- lib/fluent/plugin/formatter_gelf.rb
Instance Method Summary
collapse
Methods included from GelfUtil
#make_gelfentry, #make_json
Instance Method Details
15
16
17
|
# File 'lib/fluent/plugin/formatter_gelf.rb', line 15
def configure(conf)
super(conf)
end
|
19
20
21
22
23
24
25
26
27
28
29
|
# 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
|