Logging setLevel is being ignored : <p>The below code is copied from the documentation. I am supposed to be able to see all the info logs. But I don't. I am only able to see the warn and above even though I've set setLevel to INFO.</p>

<p>Why is this happening? <code>foo.py</code>:</p>

<pre><code>import logging

logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)

logger.debug('debug message')
logger.info('info message')
logger.warn('warn message')
logger.error('error message')
logger.critical('critical message')
</code></pre>

<p>Output:</p>

<pre><code>workingDirectory$ python foo.py
warn message
error message
critical message
</code></pre>

<p>Where did the info and debug messages go??</p>
