Description
When using additional fields in the JsonLayout the output is something like
{"logEvent":"File not found","source":"BIG","timestamp":"07-09-2019"}instead of the full JSON string as of version 2.10 (where everything works as expected).
Config used:
<?xml version="1.0" encoding="UTF-8"?> <Configuration> <Appenders> <Console name="CONSOLE"> <JsonLayout complete="false" compact="true" eventEol="true" stacktraceAsString="true"> <KeyValuePair key="source" value="BIG"/> <KeyValuePair key="timestamp" value="$${date:MM-dd-yyyy}"/> </JsonLayout> </Console> </Appenders> <Loggers> <Root level="info"> <AppenderRef ref="CONSOLE"/> </Root> </Loggers> </Configuration>
Attachments
Issue Links
- is duplicated by
-
LOG4J2-2734 Backwards incompatible change of JsonLayout from 2.11 to 2.12
- Closed
- links to