Log4j2: no log4j-web module available
<p>I am trying to set the status level of my config to "info", but I am getting the following output:</p>

<pre><code>INFO Log4j appears to be running in a Servlet environment, but there's no log4j-web module available. If you want better web container support, please add the log4j-web JAR to your web archive or server lib directory.
</code></pre>

<p>My log4j2.xml has the following</p>

<pre><code>    &lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;Configuration status="info" packages="org.graylog2.log4j2"&gt;
    &lt;Properties&gt;
        &lt;Property name="default_pattern"&gt;%d{MM/dd/yyyy hh:mm:ss} %5p %c{1} - %m%n&lt;/Property&gt;
    &lt;/Properties&gt;

    &lt;!--  LOG4J2 APPENDERS --&gt;
    &lt;Appenders&gt;
        &lt;Console name="console" target="SYSTEM_OUT"&gt;
            &lt;PatternLayout pattern="${default_pattern}"/&gt;
        &lt;/Console&gt;
        &lt;Console name="com.sum.exam" target="SYSTEM_OUT"&gt;
            &lt;PatternLayout pattern="${default_pattern}"/&gt;                            
        &lt;/Console&gt;
        &lt;Console name="auth" target="SYSTEM_OUT"&gt;
            &lt;PatternLayout pattern="${default_pattern}"/&gt;                            
        &lt;/Console&gt;
        &lt;Console name="com.d.e" target="SYSTEM_OUT"&gt;
            &lt;PatternLayout pattern="${default_pattern}"/&gt;                            
        &lt;/Console&gt;
        &lt;Console name="com.google.gson" target="SYSTEM_OUT"&gt;
            &lt;PatternLayout pattern="${default_pattern}"/&gt;                            
        &lt;/Console&gt;
        &lt;Console name="org.elasticsearch" target="SYSTEM_OUT"&gt;
            &lt;PatternLayout pattern="${default_pattern}"/&gt;                            
        &lt;/Console&gt;
        &lt;Console name="com.datamotion.direct" target="SYSTEM_OUT"&gt;
            &lt;PatternLayout pattern="${default_pattern}"/&gt;                            
        &lt;/Console&gt;
        &lt;NullAppender name="null"&gt;
            &lt;PatternLayout pattern="${default_pattern}"/&gt; 
        &lt;/NullAppender&gt;

        &lt;!-- GELFJ CONFIGURATION --&gt;
        &lt;GELF   name="gelfAppender" 
                server="org.graylog2.log.GelfAppender" 
                port="12201"
                hostName="logs.x.d.com" 
                facility="GELF-JAVA"
                additionalFields="{'\u2018environment\u2019\': '\u2018EHR\u2019'}"
                extractStacktrace="true"
                addExtendedInformation="true"&gt;
            &lt;PatternLayout pattern="${default_pattern}"/&gt;
            &lt;Root level="info"&gt;
                &lt;AppenderRef ref="gelfAppender" level="info"/&gt;
            &lt;/Root&gt;
        &lt;/GELF&gt;
    &lt;/Appenders&gt;

    &lt;!-- LOG4J2 CONFIGURATION --&gt;
    &lt;Loggers&gt;
        &lt;Root level="error" additivity="false" /&gt;

        &lt;Logger name="console" level="info"&gt;
            &lt;AppenderRef ref="console" /&gt;
        &lt;/Logger&gt;
        &lt;Logger name="com.sum.exam" level="debug" additivity="false"&gt;
            &lt;AppenderRef ref="com.sum.exam" /&gt;
        &lt;/Logger&gt;
        &lt;Logger name="auth" level="debug" additivity="false"&gt;
            &lt;AppenderRef ref="auth" /&gt;
        &lt;/Logger&gt;
        &lt;Logger name="com.d.e" level="debug" additivity="false"&gt;
            &lt;AppenderRef ref="com.d.e" /&gt;
        &lt;/Logger&gt;
        &lt;Logger name="com.google.gson" level="info"&gt;
            &lt;AppenderRef ref="com.google.gson" /&gt;
        &lt;/Logger&gt;
        &lt;Logger name="org.elasticsearch" level="info"&gt;
            &lt;AppenderRef ref="org.elasticsearch" /&gt;
        &lt;/Logger&gt;
        &lt;Logger name="com.datamotion.direct" level="debug" additivity="false"&gt;
            &lt;AppenderRef ref="com.datamotion.direct" /&gt;
        &lt;/Logger&gt;
    &lt;/Loggers&gt;

&lt;/Configuration&gt;
</code></pre>

<p>I have downloaded the <a href="https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-web/2.6.2" rel="noreferrer">log4j-web-2.6.2.jar</a> file and added it to my class path, but I still get the same output for some reason. What could I be doing wrong? I am able to output DEBUG status levels, but not INFO which is odd.</p>