title: Logger.setLevel() doesn't enable logging correctly
body: <p>Situation: I have this log4j logger:</p>
  
  <pre><code>private static final Logger logger = Logger.getLogger(ThisClassName.class);
  </code></pre>
  
  <p>And am trying to set it programatically through:</p>
  
  <pre><code>Logger.getLogger(ThisClassName.class).setLevel(Level.DEBUG);
  </code></pre>
  
  <p>Still, DEBUG level prints are swalloed (while INFO prints are printed successfully).</p>
  
  <p>Even this bit has no effect: <code>Logger.getRootLogger().setLevel(Level.DEBUG);</code></p>
  
  <p>Calling logger.debug("foo") reaches <code>Category.forcedLog()</code> and <code>ConsoleAppender.doAppend()</code>, and then fails (quits) at:</p>
  
  <pre><code>if(!isAsSevereAsThreshold(event.getLevel()))
  </code></pre>
  
  <p>Any idea why this is happening?</p>