title: log4j: different category priority than appender threshold
body: <p>I've been trying to get this simple use case to work but can't: Define a default Threshold of INFO on a FILE Appender, but define a category with DEBUG level. This is a jboss 4.2.1.GA log4j.xml file that I am using where I just want to log java.sql calls.</p>
  
  <pre><code>   &lt;appender name="SQL_FILE" class="org.jboss.logging.appender.DailyRollingFileAppender"&gt;
        &lt;errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/&gt;
        &lt;param name="File" value="${jboss.server.log.dir}/sql.log"/&gt;
        &lt;param name="Append" value="false"/&gt;
        &lt;param name="Threshold" value="INFO"/&gt;
  
        &lt;param name="DatePattern" value="'.'yyyy-MM-dd"/&gt;
  
        &lt;layout class="org.apache.log4j.PatternLayout"&gt;
           &lt;param name="ConversionPattern" value="%d %-5p [%c] %C %m%n"/&gt;
        &lt;/layout&gt;
     &lt;/appender&gt;
  
    &lt;category name="java.sql"&gt;
      &lt;priority value="DEBUG"/&gt;
      &lt;appender-ref ref="SQL_FILE"/&gt;
    &lt;/category&gt;
  
     &lt;root&gt;
        &lt;appender-ref ref="SQL_FILE"/&gt;
     &lt;/root&gt;
  </code></pre>
  
  <p>Instead of logging just java.sql it logs INFO and above and does not include any java.sql information. If there is no easy solution then I am left with setting the appender Threshold to DEBUG and turning off all logging for the multiple categories that get included, which seems a waste of time.</p>
  
  <p>I tried the following but couldn't get it to work: <a href="https://stackoverflow.com/questions/2050615/configuring-multiple-log-files-in-log4j-while-using-categories">Configuring multiple log files in log4j while using categories</a>.</p>