title: jcl-over-slf4j: set logging level howto
body: <p>That's pretty strange but only FATAL &amp; ERROR level works for me, even when I specify a TRACE level.</p>
  
  <p><strong>LoggingTest.class:</strong></p>
  
  <pre><code>import org.apache.commons.logging.Log;
  import org.apache.commons.logging.LogFactory;
  import org.junit.Test;
  
  public class SLF4JTest {
  
      private static Log _LOG = LogFactory.getLog(SLF4JTest.class);
  
      @Test
      public void test() {
          _LOG.fatal("Fatal works!"); //works
          _LOG.error("Error works!"); //works
          _LOG.warn("Warn works!"); //doesn't work
          _LOG.info("Info works!"); //doesn't work
          _LOG.debug("Debug works"); //doesn't work
          _LOG.trace("Trace works"); //doesn't work
      }
  }
  </code></pre>
  
  <p><strong>log4j.properties:</strong></p>
  
  <pre><code>log4j.rootLogger=TRACE, stdout
  log4j.appender.stdout=org.apache.log4j.ConsoleAppender
  log4j.appender.stdout.Target=System.out
  log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
  log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd'T'HH:mm:ss.SSS}
  </code></pre>