Log4j2 configuration - What happens if AppenderRef not set for logger?
<p>What happens if I don't explicitly set the AppenderRef for the logger config in log4j2.xml ? Would it use all the appenders by default ? </p>

<p>.
.
</p>

<pre><code>&lt;Logger name="com.package1" level="error"/&gt;

&lt;Root level="error"&gt;
  &lt;AppenderRef ref="LOGFILE"/&gt;
  &lt;AppenderRef ref="CONSOLE"/&gt;
&lt;/Root&gt;
</code></pre>

<p>
.
.</p>