title: Not able to generate log when migrate from log4j 1.x to log4j 2.x using bridge jar in spring boot web application
body: <p>I am trying to migrate from log4j1.x to log4j2.x.</p>
  <pre><code>Followed this link - https://logging.apache.org/log4j/2.x/manual/migration.html
  </code></pre>
  <p>But I am not seeing logs are generated after changing it. I can't figure out what I am missing.</p>
  <p>Here is the detail -
  Exisging log4j version -</p>
  <pre><code> &lt;dependency&gt;
      &lt;groupId&gt;log4j&lt;/groupId&gt;
      &lt;artifactId&gt;log4j&lt;/artifactId&gt;
      &lt;version&gt;1.2.17&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  <p>This is replaced with -</p>
  <pre><code>&lt;dependency&gt;
    &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
    &lt;artifactId&gt;log4j-1.2-api&lt;/artifactId&gt;
    &lt;version&gt;2.6.2&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
   &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
   &lt;artifactId&gt;log4j-jcl&lt;/artifactId&gt;
   &lt;version&gt;2.6.2&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  <p>I can see <strong>log4j-1.2.17</strong>.jar is replaced with these four jars-</p>
  <ol>
  <li>log4j-jcl-2.6.2.jar</li>
  <li>log4j-core-2.1.jar</li>
  <li>log4j-api-2.1.jar</li>
  <li>log4j-1.2-api-2.6.2.jar</li>
  </ol>
  <p>This is the existing configuration file (filename <strong>/usr/local/log4j.properties</strong>) -</p>
  <pre><code>log4j.rootLogger=INFO, file
  log4j.appender.file=org.apache.log4j.RollingFileAppender
  log4j.appender.file.File=/var/log/access.log
  log4j.appender.file.MaxFileSize=5MB
  log4j.appender.file.MaxBackupIndex=10
  log4j.appender.file.layout=org.apache.log4j.PatternLayout
  log4j.appender.file.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n
     
  </code></pre>
  <p>Replaced this system property value -</p>
  <pre><code>logging.config=/usr/local/log4j.properties
  </code></pre>
  <p>with these two lines</p>
  <pre><code>log4j1.compatibility=true
  log4j.configuration=/usr/local/log4j.properties
  </code></pre>