title: How to log the second argument in log4j
body: <p>I am trying to use log4j for the first time and I have configured it correctly, I just wanted to know how can I print the details of the argument passed as second parameter:</p>
  
  <pre><code>LogManager.getLogger(SomeName.class.getName()).info(message, detail);
  </code></pre>
  
  <p>and my configuration appender is:</p>
  
  <pre><code>&lt;File name="file1" fileName="output.log"&gt;
      &lt;PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/&gt;
  &lt;/File&gt;
  </code></pre>
  
  <p>I think there should be some switch within the pattern after <code>%msg</code> if I want to log the detail there. But I am not sure what or how.</p>