I have the following console appender;
<Console name="STDOUT">
<PatternLayout pattern="%highlight{%d [%t] %notEmpty{[%marker] }%-5level: %msg %X%n%throwable}"/>
<ThresholdFilter level="trace"/>
</Console>
The problem is that the pattern I have used here outputs an empty ThreadContext ({}
). I do not want to use specific key names (e.g. %X{username}
) because the system is quite extensive and the set of keys varies. Example output:
2017-09-26 10:39:55,396 [main] INFO : Starting the internal HTTP client {}