Description
If you use %enc
{%msg} {JSON}and do:
log.info("Line 1\nLine 2")
The message will encode as
"Line 1\u000ALine 2"
It would be nice if the JSON encoder would replace newline with \n, and if the code can recongize other special character would be even better
Attachments
Issue Links
- duplicates
-
LOG4J2-2120 Json escaping does not properly escape newlines and other control characters
- Closed