Class: Fluent::Plugin::Formatter
- Includes:
- OwnedByMixin, TimeMixin::Formatter
- Defined in:
- lib/fluent/plugin/formatter.rb
Direct Known Subclasses
Compat::Formatter, CsvFormatter, HashFormatter, JSONFormatter, LabeledTSVFormatter, MessagePackFormatter, OutFileFormatter, ProcWrappedFormatter, SingleValueFormatter, StdoutFormatter, TSVFormatter
Constant Summary collapse
- PARSER_TYPES =
[:text_per_line, :text, :binary]
Constants included from Configurable
Configurable::CONFIG_TYPE_REGISTRY
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods included from TimeMixin::Formatter
included, #time_formatter_create
Methods included from OwnedByMixin
Methods inherited from Base
#acquire_worker_lock, #after_shutdown, #after_shutdown?, #after_start, #after_started?, #before_shutdown, #before_shutdown?, #called_in_test?, #close, #closed?, #configure, #configured?, #context_router, #context_router=, #fluentd_worker_id, #get_lock_path, #has_router?, #initialize, #inspect, #multi_workers_ready?, #plugin_root_dir, #reloadable_plugin?, #shutdown, #shutdown?, #start, #started?, #stop, #stopped?, #string_safe_encoding, #terminate, #terminated?
Methods included from SystemConfig::Mixin
#system_config, #system_config_override
Methods included from Configurable
#config, #configure, #configure_proxy_generate, #configured_section_create, included, #initialize, lookup_type, register_type
Constructor Details
This class inherits a constructor from Fluent::Plugin::Base
Instance Method Details
#format(tag, time, record) ⇒ Object
35 36 37 |
# File 'lib/fluent/plugin/formatter.rb', line 35 def format(tag, time, record) raise NotImplementedError, "Implement this method in child class" end |
#formatter_type ⇒ Object
31 32 33 |
# File 'lib/fluent/plugin/formatter.rb', line 31 def formatter_type :text_per_line end |