Plugin Helper: Formatter
The formatter
plugin helper manages the lifecycle of the formatter plugin.
Here is an example:
For more details, see the following articles:
Methods
formatter_create(usage: "", type: nil, conf: nil, default_type: nil)
formatter_create(usage: "", type: nil, conf: nil, default_type: nil)
usage
: unique name required for multiple formatterstype
: formatter typeconf
: formatter plugin configurationdefault_type
: default formatter type
Examples:
JSON formatter example:
MsgPack formatter example:
Plugins using formatter
formatter
If this article is incorrect or outdated, or omits critical information, please let us know. Fluentd is an open-source project under Cloud Native Computing Foundation (CNCF). All components are available under the Apache 2 License.
Last updated