Class: Fluent::TextFormatter::SingleValueFormatter
- Defined in:
- lib/fluent/formatter.rb
Constant Summary
Constants included from Configurable
Configurable::CONFIG_TYPE_REGISTRY
Instance Method Summary collapse
Methods inherited from Formatter
Methods included from Configurable
#config, #configure, included, #initialize, lookup_type, register_type
Instance Method Details
#format(tag, time, record) ⇒ Object
225 226 227 228 229 |
# File 'lib/fluent/formatter.rb', line 225 def format(tag, time, record) text = record[@message_key].to_s.dup text << "\n" if @add_newline text end |