title: Logging Thread ID instead of Thread Name using Logback
body: <p>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 <code>%tid</code> . </p>
  
  <ul>
  <li><p>Can I achieve the same using logback or should I implement a Custom Thread ID extractor? </p></li>
  <li><p>I'm extending <code>PatternLayout</code> class and creating a map which has the thread id and it's value. How do I use this key in my <code>logback.xml</code></p></li>
  </ul>