title: debug logs is not printing in console and log file is not generating
body: <p>Hi I am new to Log4j help me to fix this issue.</p>
  <p>One of the module of my application previously used spring boot default common loggers, but now I am implementing log4j to this module</p>
  <p>I am facing issue like if I add log statement with debug logs it does not get printed in console and log file is not generating.</p>
  <p>POM.XML:</p>
  <pre><code>&lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-web&lt;/artifactId&gt;
              &lt;exclusions&gt;
                  &lt;exclusion&gt;
                      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                      &lt;artifactId&gt;spring-boot-starter-logging&lt;/artifactId&gt;
                  &lt;/exclusion&gt;
              &lt;/exclusions&gt;
          &lt;/dependency&gt;
  &lt;dependency&gt;
              &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
              &lt;artifactId&gt;log4j-api&lt;/artifactId&gt;
              &lt;version&gt;2.6&lt;/version&gt;
          &lt;/dependency&gt;
  &lt;dependency&gt;
              &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
              &lt;artifactId&gt;log4j-core&lt;/artifactId&gt;
              &lt;version&gt;2.6&lt;/version&gt;
          &lt;/dependency&gt;
  </code></pre>
  <p>log4j2.xml:</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;!DOCTYPE xml&gt;
  &lt;Configuration strict=&quot;true&quot; name=&quot;XMLConfig&quot;&gt;
      &lt;Appenders&gt;
          &lt;Appender type=&quot;Console&quot; name=&quot;STDOUT&quot;&gt;
              &lt;Layout type=&quot;PatternLayout&quot;&gt;
                   &lt;Pattern&gt;%d{[MM.dd.yyyy] | [HH:mm:ss]|}%level{FATAL=[FATAL],ERROR=[ERROR], WARN=[WARN], INFO=[INFO], DEBUG=[DEBUG],  TRACE=[TRACE]}|[%X{sessionID}]|[%F]|[%M]|[%L]|%m%throwable%n&lt;/Pattern&gt;
              &lt;/Layout&gt;
          &lt;/Appender&gt;
       
        &lt;RollingFile name=&quot;RollingFile&quot; fileName=&quot;/data/storage/log/Test.log&quot; filePattern=&quot;/data/storage/log/test.%d{yyyy-MM-dd}_%i.Logs.gz&quot;&gt;
      
          
              &lt;Layout type=&quot;PatternLayout&quot;&gt;
                   &lt;Pattern&gt;%d{[MM.dd.yyyy] | [HH:mm:ss]|}%level{FATAL=[FATAL],ERROR=[ERROR], WARN=[WARN], INFO=[INFO], DEBUG=[DEBUG],  TRACE=[TRACE]}|[%X{sessionID}]|[%F]|[%M]|[%L]|%m%throwable%n&lt;/Pattern&gt;
              &lt;/Layout&gt;
              
          &lt;/RollingFile&gt;       
      &lt;/Appenders&gt;
      
      &lt;Loggers&gt;
          &lt;logger name=&quot;com.test&quot; additivity=&quot;false&quot; level=&quot;ERROR&quot;&gt;
              &lt;AppenderRef ref=&quot;RollingFile&quot;/&gt;
              &lt;AppenderRef ref=&quot;STDOUT&quot;/&gt; 
          &lt;/logger&gt;
          
          &lt;Root level=&quot;ERROR&quot;&gt;
              &lt;AppenderRef ref=&quot;RollingFile&quot;/&gt;
              &lt;AppenderRef ref=&quot;STDOUT&quot;/&gt;
          &lt;/Root&gt;
      &lt;/Loggers&gt;
  &lt;/Configuration&gt;
  </code></pre>
  <p>My CLass:</p>
  <pre><code>Logger LOGGER = LogManager.getLogger(this.getClass().getName());
  
  LOGGER.debug(&quot;DEBUG LOGS&quot;);
  </code></pre>