title: Log4j how to configure Log level
body: <p>I run my war with jboss-as-maven-plugin version 7.3.Final (goal jboss-as:run) from Netbeans 7.2.1.</p>
  
  <p>My pom.xml</p>
  
  <pre><code>&lt;!-- logging --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
              &lt;artifactId&gt;slf4j-api&lt;/artifactId&gt;
              &lt;version&gt;${slf4j.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
              &lt;artifactId&gt;jcl-over-slf4j&lt;/artifactId&gt;
              &lt;version&gt;${slf4j.version}&lt;/version&gt;
              &lt;scope&gt;runtime&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
              &lt;artifactId&gt;slf4j-log4j12&lt;/artifactId&gt;
              &lt;version&gt;${slf4j.version}&lt;/version&gt;
              &lt;scope&gt;runtime&lt;/scope&gt;
          &lt;/dependency&gt;
  </code></pre>
  
  <p>slf4j.version is 1.7.2.</p>
  
  <p>I have a strange behavior:</p>
  
  <p>Here my log4j.xml</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;!-- Appenders --&gt;
      &lt;appender name="console" class="org.apache.log4j.ConsoleAppender"&gt;
          &lt;param name="Target" value="System.out" /&gt;
          &lt;param name="Encoding" value="UTF-8" /&gt;
          &lt;layout class="org.apache.log4j.PatternLayout"&gt;
              &lt;param name="ConversionPattern" value="%d{HH:mm:ss,SSS} %-5p: %c - %m%n" /&gt;
          &lt;/layout&gt;
      &lt;/appender&gt;
  
      &lt;!-- Application Loggers --&gt;
      &lt;logger name="org"&gt;
          &lt;level value="warn" /&gt;
      &lt;/logger&gt;
  
      &lt;logger name="org.openid4java"&gt;
          &lt;level value="debug" /&gt;
      &lt;/logger&gt;
  
  
      &lt;logger name="fr.mypackage"&gt;
          &lt;level value="debug" /&gt;
      &lt;/logger&gt;
  
  
      &lt;!-- Root Logger --&gt;
      &lt;root&gt;
          &lt;priority value="warn" /&gt;
          &lt;appender-ref ref="console" /&gt;
      &lt;/root&gt;
  
  &lt;/log4j:configuration&gt;
  </code></pre>
  
  <p>Use :</p>
  
  <pre><code>import org.slf4j.Logger;
  import org.slf4j.LoggerFactory;
      private static final Logger logger = LoggerFactory.getLogger(MyController.class);
  </code></pre>
  
  <p>My logger in fr.mypackage don't log nicely. I mean all my logger.debug didn't work, only my logger.warn are displaying. I don't understand because I set fr.mypackage to debug level.</p>
  
  <p>More strange is that log from org.openid4java at level INFO are display.</p>
  
  <p>What should I do? Where is my mistake ?</p>
  
  <p>Thanks</p>