Text encoding extension
The text_encoding
extension is an encoding extension that can unmarshal and marshal logs.
The extension accepts an encoding and separator to unmarshal data as the body of one or more log records.
The separator accepts regular expressions.
When marshaling logs, the extension will return the body content, separated by a separator.
Here is the default configuration:
extensions:
text_encoding:
encoding: utf8
marshaling_separator: "\n"
unmarshaling_separator: "\r?\n"