title: How to configure 'dictConfig' properly to use a different logging format?
body: <p>I am trying to configure my logger using <code>dictConfig</code> to use a different format but it does not seem to be taking effect.  Following is the code that I have (I am also simultaneously trying to suppress the logs from imported modules)-</p>
  
  <pre class="lang-py prettyprint-override"><code>import logging.config
  import requests
  
  logging.config.dictConfig({
      'version': 1,
      'disable_existing_loggers': True,
      'formatters':{'standard': { 'format': "[%(asctime)s] [%(levelname)8s] - %(message)s", 'datefmt':"%d-%b-%Y %I:%M:%S %p"}},
      'handlers': {'default': {'level': 'DEBUG', 'formatter': 'standard', 'class': 'logging.StreamHandler', 'stream': 'ext://sys.stdout'}},
      'loggers':{'__main__': {'handlers': ['default'], 'level': 'DEBUG', 'propagate': False }}
  })
  
  req = requests.get('https://www.google.com')
  
  logging.debug("Only thing that should be printed")
  </code></pre>
  
  <p><strong>Output</strong> -</p>
  
  <pre><code>DEBUG:root:Only thing that should be printed
  </code></pre>
  
  <p><strong>Expected Output</strong> -</p>
  
  <pre><code>[2020-04-04 22:46:24,866] [   DEBUG] - Only thing that should be printed
  </code></pre>
  
  <p>I learnt how to use <code>dictConfig</code> from this <a href="https://stackoverflow.com/questions/7507825/where-is-a-complete-example-of-logging-config-dictconfig">SO post</a>.</p>