Log4j using ThreadContext and also Custom log levels
Hi !
In open studio 7.3 (free) I've enabled log4j and configured properties with some custom log levels.
Also use MDC/ThreadContext to add custom 'columns' in my logging to make the processing and monitoring (in Elastic/Kibana) a little easier.
When Im using tRunJob with dynamic jobs defined, it triggers the corresponding job based on its given input NAME. In this scenario the ThreadContext works fine.
In a scenario where multiple jobs (when a list of multiple jobnames is given as input) runs the ThreadContext is not working, only for the first job...
I assumed ThreadContext implies its in the same thread, log suggest [main] so that should be the case.
Within properties in pattern you access it by %X{NAME}
Is there a different/better way or approach to implement ThreadContext? Help is suggestions appreciated!