title: Why am I getting double like output in Log4J?
body: <p>I am working on a Java Spring project and I want to log WARNS from every package and only INFO from my packages. </p>
  
  <p>I don't know why Log4J is giving me double line output for my packages. </p>
  
  <p>Can someone please tell me why</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
  &lt;!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"&gt;
  &lt;log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"&gt;
  
      &lt;appender name="console" class="org.apache.log4j.ConsoleAppender"&gt;
          &lt;layout class="org.apache.log4j.PatternLayout"&gt;
              &lt;param name="ConversionPattern" value="%d [%t] %-5p %c - %m%n"/&gt;
          &lt;/layout&gt;
      &lt;/appender&gt;
  
  
      &lt;logger name="com.xxxxx.mongodb"&gt;
          &lt;level value="INFO"/&gt;
          &lt;appender-ref ref="console" /&gt;
      &lt;/logger&gt;
  
      &lt;root&gt;
          &lt;priority value="WARN"/&gt;
          &lt;appender-ref ref="console"/&gt;
      &lt;/root&gt;
  &lt;/log4j:configuration&gt;
  </code></pre>