Log disabling in python
<p>I am new to this logging module.</p>

<pre><code>logging.basicConfig(level=logging.DEBUG)
logging.disable = True
</code></pre>

<p>As per my understanding this should disable debug logs. But when it is  executed it prints debug logs also.</p>

<p>I have only debug logs to print. I dont have critical or info logs. So how i can disable this debug logs.</p>

<p>You can add change <code>level=logging.CRITICAL</code> and receive only critical logs</p>

python python-2.7