jakluk opened a new pull request #394:
URL: https://github.com/apache/logging-log4j2/pull/394


   A pull request for issue 
[https://issues.apache.org/jira/browse/LOG4J2-2892](https://issues.apache.org/jira/browse/LOG4J2-2892).
   
   This PR adds ability to delimit Graylog Extended Log Format (GELF) messages 
with a newline. It can be useful when you want to append messages in the 
Graylog format into a file, or when you have to feed the messages into a 
consumer which supports only newlines as a delimiter. The documentation of GELF 
only specifies usage of a NULL delimiter and doesn't discourage from using some 
other. It also requires that newlines inside the message body must be escaped, 
so multi-line stack traces shouldn't be an issue.
   
   New optional boolean parameter "includeNewLineDelimiter" is introduced to 
GelfLayout, nothing changes for current users if they decide not to use it.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to