title: How to use log4j2 Commons Logging Bridge
body: <p>I want to use log4j2 Commons Logging Bridge with commons 1.2. I tried to use something like follows:</p>
  
  <pre><code>import org.apache.logging.log4j.jcl.LogFactoryImpl;
  
  public class MyClass{
  
      private static Log log = LogFactoryImpl.getLog(DropinsBundleDeployer.class);
           .
           .
           .
      log.error("Error occured", e);
  }
  </code></pre>
  
  <p>But when I'm running the code I'm getting following issue and cannot see any log: </p>
  
  <pre><code>log4j:WARN Please initialize the log4j system properly.
  </code></pre>
  
  <p>However the log4j2.xml file is in the class path.
  How can I correctly use commons logging 1.2 with log4j2 ?</p>