title: Logging output running django tests under Pycharm
body: <p>When running/debugging individual tests using <code>django.test.TestCase</code> under PyCharm logging.logger messages are not shown. I've tried setting <code>logging.basicConfig(level=logging.DEBUG)</code> as suggested by <a href="https://stackoverflow.com/questions/24470062/how-can-i-see-log-messages-when-unit-testing-in-pycharm">How can I see log messages when unit testing in PyCharm?</a> but that didn't help either. I suspect it might be django's <code>TestCase</code> setup interferring.</p>
  
  <p>Is there some other way in test setup or runner configuration that I can turn on debug logging for the test run?</p>
  
  <p>The logging I have set up in my settings.py right now is:</p>
  
  <pre><code>LOGGING = {
      'version': 1,
      'disable_existing_loggers': False,
      'handlers': {
          'console': {
              'class': 'logging.StreamHandler',
              'formatter': 'verbose'
          },
          'file': {
              'level': 'DEBUG',
              'class': 'logging.handlers.TimedRotatingFileHandler',
              'filename': '/var/log/em/mcqueen-dev.log',
              'when': 'midnight',
              'formatter': 'verbose',
          },
      },
      'formatters': {
          'verbose': {
              'format': '%(asctime)s.%(msecs).03d - %(process)d - %(thread)d - %(levelname)8s - %(filename)s:%(lineno)d - %(funcName)s - %(message)s'
          },
          'simple': {
              'format': '%(asctime)s - %(levelname)s %(message)s'
          },
      },
      'loggers': {
          'mcqueen_api': {
              'handlers': ['console', 'file'],
              'level': os.getenv('DJANGO_LOG_LEVEL', 'DEBUG')
          },
          'mcqueen_app': {
              'handlers': ['console', 'file'],
              'level': os.getenv('DJANGO_LOG_LEVEL', 'DEBUG')
          },
          'mcqueen_base': {
              'handlers': ['console', 'file'],
              'level': os.getenv('DJANGO_LOG_LEVEL', 'DEBUG')
          },
      },
  }
  </code></pre>