title: Is it possible to have a java object in log4j Conversion pattern?
body: <p>Its multi tenancy application and generates lots of logs.</p>
  
  <p>I want to see tenant information in an individual log statement.
  I have the tenant information in my thread context.</p>
  
  <p>How can i configure log4j to add tenant information to log statements by default.</p>
  
  <p>I saw Conversion pattern says the pattern of log4j messages like %d [%t] %-5p %c - %m%n.
   It didnt helped, not able to print thread context in it.</p>
  
  <p>Say CurrentThread.getTenantName() gives me the current tenant, how could add it to log4j.</p>