Set logging levels
<p>I'm trying to use the standard library to debug my code:</p>

<p>This works fine:</p>

<pre><code>import logging
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
logger.info('message')
</code></pre>

<p>I can't make work the logger for the lower levels: </p>

<pre><code>logging.basicConfig(level=logging.DEBUG)
logger = logging.getLogger(__name__)
logger.info('message')

logging.basicConfig(level=logging.DEBUG)
logger = logging.getLogger(__name__)
logger.debug('message')
</code></pre>

<p>I don't get any response for neither of those.</p>