Jakub Lukes created LOG4J2-2892:
-----------------------------------
Summary: GelfLayout can't produce newline delimited events
Key: LOG4J2-2892
URL: https://issues.apache.org/jira/browse/LOG4J2-2892
Project: Log4j 2
Issue Type: Improvement
Components: Layouts
Affects Versions: 2.13.3, 2.12.1
Reporter: Jakub Lukes
Hello, the GelfLayout currently generates either \0 delimiter or no delimiter
at all. We would like to use GELF for structured logging to files and Docker,
and for that we need the events to be ended with a newline.
I propose to add an option to GelfLayout to support this, possibly named
eventEol to be same as in JsonLayout. I can provide a patch if this will be
considered a good idea.
In case the wanted behavior can be achieved without any code change, I would
welcome such answer too.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)