I have a Spring boot application and I'm using logback as the framework for logging. Currently I want to display thread id instead of the thread name. I know it is possible using log4j2 if you use %tid
.
Can I achieve the same using logback or should I implement a Custom Thread ID extractor?
I'm extending
PatternLayout
class and creating a map which has the thread id and it's value. How do I use this key in mylogback.xml