title: log4j2 multiple appenders, multiple loggers in config.xml
body: <p>I am trying to setup a log4j2 xml config and am not getting the results I desire.  I want my console to get level info and above, and the rolling file appender (standard) to get level debug and above.  I then want to restrict 3 classes in the console appender to only receive warn and above.  However, when I add these logger entries my standard appender also stops receiving the info and debug levels for these 3 classes.  What should I do to only restrict console and not standard?</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;param name="Target" value="System.out"/&gt; 
      &lt;param name="threshold" value="info" /&gt;
      &lt;layout class="org.apache.log4j.PatternLayout"&gt; 
          &lt;param name="ConversionPattern" value="%d{ABSOLUTE} %-5p %c [%t] %X{ctx} ~ %m%n" /&gt;
      &lt;/layout&gt; 
  &lt;/appender&gt; 
  
  &lt;appender name="standard" class="org.apache.log4j.DailyRollingFileAppender"&gt;
      &lt;param name="file" value="logs/broadcast.log" /&gt;
      &lt;param name="DatePattern" value="'.'yyyy-MM-dd" /&gt;
      &lt;param name="threshold" value="debug" /&gt;
      &lt;layout class="org.apache.log4j.PatternLayout"&gt;
          &lt;param name="ConversionPattern" value="%d{DATE} %-5p %c{1} [%t] %X{ctx} ~ %m%n" /&gt;
      &lt;/layout&gt;   
  &lt;/appender&gt;
  
  &lt;appender name="stderr" class="org.apache.log4j.FileAppender"&gt;
      &lt;param name="file" value="logs/broadcast.err" /&gt;
      &lt;param name="threshold" value="error" /&gt;
      &lt;layout class="org.apache.log4j.PatternLayout"&gt;
          &lt;param name="ConversionPattern" value="%d{DATE} %-5p %c{1} [%t] %X{ctx} ~ %m%n" /&gt;
      &lt;/layout&gt;
  &lt;/appender&gt;
  
   &lt;appender name="jlv" class="org.apache.log4j.net.SocketAppender"&gt;
      &lt;param name="remoteHost" value="localhost"/&gt;
      &lt;param name="port" value="4445"/&gt;
      &lt;param name="locationInfo" value="true"/&gt;
    &lt;/appender&gt;
  
  &lt;logger name="com.mydetv.broadcast.BroadcastLoop"&gt;
      &lt;level value="warn"/&gt;
      &lt;appender-ref ref="console" /&gt;
  &lt;/logger&gt;
  &lt;logger name="com.mydetv.broadcast.BroadcastUpdate22"&gt;
      &lt;level value="warn"/&gt;
      &lt;appender-ref ref="console" /&gt;
  &lt;/logger&gt;
  &lt;logger name="com.mydetv.broadcast.vlc.VlcRequest22"&gt;
      &lt;level value="warn"/&gt;
      &lt;appender-ref ref="console" /&gt;
  &lt;/logger&gt;
  
  &lt;root&gt; 
      &lt;priority value ="debug" /&gt; 
      &lt;appender-ref ref="standard" /&gt; 
      &lt;appender-ref ref="stderr"/&gt; 
      &lt;appender-ref ref="console" /&gt; 
      &lt;appender-ref ref="jlv"/&gt;
  &lt;/root&gt;
  
  &lt;/log4j:configuration&gt;
  </code></pre>