I'd like to force my log4j2 to display log level like "Warning" instead of "WARN" etc.
Is it possible to do so? It can't be done programmatically, it must be done in XML configuration file because I'm using it in an already built image so I don't have access to the source code.
I tried something like this but it did nothing.
<CustomLevels>
<CustomLevel name="Warning" intLevel="300" />
<CustomLevel name="Information" intLevel="400" />
</CustomLevels>
I'd like to replace default log levels with my custom names.
Edit:
I need something like this, but for JsonTemplateLayout:
<PatternLayout>
<Pattern>"%level{WARN=Warning, DEBUG=Debug, ERROR=Error, TRACE=Trace, INFO=Info}"</Pattern>
</PatternLayout>
It must be in JSON format using JsonTemplateLayout (no PatternLayout)