title: Where to put formatMsgNoLookups in the Log4j XML configuration file
body: <p>I configure my Log4j with an XML file. Where should I add the <em>formatMsgNoLookups=true</em>?</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;!--  Upload files compare config --&gt;
  &lt;configuration status=&quot;OFF&quot;&gt;
    &lt;appenders&gt;
      &lt;Console name=&quot;Console&quot; target=&quot;SYSTEM_OUT&quot;&gt;
        &lt;PatternLayout pattern=&quot;%d{HH:mm:ss} %p - %msg%n&quot;/&gt;
      &lt;/Console&gt;
  
      &lt;!-- http://logging.apache.org/log4j/2.x/manual/appenders.html#RollingFileAppender --&gt;
      &lt;RollingFile name=&quot;File&quot; fileName=&quot;logs/MyLogFile.log&quot;
                            filePattern=&quot;logs/MyLogFile-%d{yyyy-MM-dd}.log&quot;
                   ignoreExceptions=&quot;false&quot;&gt;
        &lt;PatternLayout&gt;
          &lt;Pattern&gt;%d %p %c{1.} %m%n&lt;/Pattern&gt;
        &lt;/PatternLayout&gt;
      &lt;/RollingFile&gt;
    &lt;/appenders&gt;
    &lt;Loggers&gt;
      &lt;Root level=&quot;INFO&quot;&gt;
        &lt;AppenderRef ref=&quot;File&quot;/&gt;
        &lt;AppenderRef ref=&quot;Console&quot;/&gt;
      &lt;/Root&gt;
    &lt;/Loggers&gt;
  &lt;/configuration&gt;
  </code></pre>