title: Django: how to set log level to INFO or DEBUG
body: <p>I tried to change the debug level to DEBUG in Django because I want to add some debug messages to my code. It seems to have no effect.</p>
  
  <p>My logging configuration:</p>
  
  <pre><code>LOGGING = {
      'version': 1,
      'disable_existing_loggers': False,
      'formatters': {
          'simple': {
              'format': '%(levelname)s %(message)s'
          },
      },
      'handlers': {
          'console':{
              'level':'DEBUG',
              'class':'logging.StreamHandler',
              'formatter': 'simple'
          },
      },
      'loggers': {
          'django.request':{
              'handlers': ['console'],
              'propagate': False,
              'level': 'DEBUG',
          },
      },
  }
  </code></pre>
  
  <p>Code:</p>
  
  <pre><code>import logging ; logger = logging.getLogger(__name__)
  logger.debug("THIS MESSAGE IS NOT SHOWN IN THE LOGS")
  logger.warn("THIS ONE IS")
  </code></pre>
  
  <p>Output on the console:</p>
  
  <pre><code>WARNING:core.handlers:THIS ONE IS
  </code></pre>
  
  <p>I also have tried setting DEBUG = False and DEBUG = True in my settings file. Any ideas?</p>
  
  <p><strong>Edit:</strong> If I set the log level on the logger directly, it works:</p>
  
  <pre><code>import logging ; logger = logging.getLogger(__name__)
  logger.setLevel(logging.DEBUG)
  logger.debug("THIS MESSAGE IS NOT SHOWN IN THE LOGS")
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>DEBUG:core.handlers:THIS MESSAGE IS NOT SHOWN IN THE LOGS
  WARNING:core.handlers:THIS ONE IS
  </code></pre>
  
  <p>But: It seems the config file is totally ignored. It prints both statements <strong>always</strong> even if I set both entries in the config back to ERROR. Is this the correct behaviour or am I still missing something?</p>