title: How to configure logback to append special prefix for each object?
body: <p>I have a class that takes string parameter in its constructor which represents it. </p>
  
  <p>And i want to append this string as prefix at log messages. How can I do it in logback ?</p>
  
  <p>For example;</p>
  
  <pre><code>MyClass classA = new MyClass("0999445454");
  
  MyClass classB = new MyClass("0999446464");
  
  classA.doSomething();
  classB.doSomething();
  </code></pre>
  
  <p>The method of MyClass ;</p>
  
  <pre><code>public void doSomething()  {
       logger.info("Doing Something...");
  
       //Do something
  }
  </code></pre>
  
  <p>So i want to see  log messages like that ;</p>
  
  <pre><code>[INFO] [0999445454]: Doing Something...
  [INFO] [0999446464]: Doing Something...
  </code></pre>