-
-
Notifications
You must be signed in to change notification settings - Fork 45
Formatter types
FantasticFiasco edited this page Aug 12, 2020
·
5 revisions
Formatters build a pipeline that takes a sequence of log events and turn them into something that can be sent over the network. There are two types of formatters, the event formatter and the batch formatter.
The event formatter is responsible for turning a single log event into a textual representation. It can serialize the log event into JSON, XML or anything else that matches the expectations of the receiving log server.
The batch formatter is responsible for batching a sequence of log events into a single payload that can be sent over the network. It does not care about individual log event formatting but instead focuses on how these events are serialized together into a single HTTP request.