title: Gunicorn Django and logging info to a file
body: <p>I'm trying to setup my logging settings to send <code>logging.info('any message')</code> to a file through <strong>stdout</strong>.</p>
  
  <p>This is my <code>gunicorn_django</code> script:</p>
  
  <p><code>
  $ gunicorn_django -w $NUM_WORKERS --user=$USER --group=$GROUP --log-level=info --log-file=$LOGFILE &amp;&gt;&gt;$LOGFILE
  </code></p>
  
  <p>These are my logging settings:</p>
  
  <pre><code>import sys
  LOGGING = {
      'version': 1,
      'disable_existing_loggers': False,
      'formatters': {
          'simple': {
              'format': '%(levelname)s %(message)s'
          },
      },
      'filters': {
          'require_debug_false': {
              '()': 'django.utils.log.RequireDebugFalse'
          }
      },
      'handlers': {
          'console': {
              'level': 'INFO',
              'filters': ['require_debug_false'],
              'class': 'logging.StreamHandler',
              'stream': sys.stdout,
              'formatter': 'simple',
          },
          'mail_admins': {
              'level': 'ERROR',
              'filters': ['require_debug_false'],
              'class': 'django.utils.log.AdminEmailHandler'
          }
      },
      'loggers': {
          'app.location': {
              'handlers': ['console'],
              'level': 'INFO',
              'propagate': False,
          },
          'django.request': {
              'handlers': ['mail_admins'],
              'level': 'ERROR',
              'propagate': True,
          },
      }
  }
  </code></pre>
  
  <p>When I do:</p>
  
  <pre><code>import logging
  logging.getLogger('app.location')
  logging.info('any message')
  </code></pre>
  
  <p>It is not logged to the <code>gunicorn_django</code> $LOGFILE. Just <code>print &gt;&gt; sys.stderr</code> messages seem to be showed in the $LOGFILE</p>
  
  <p><strong>How can I log info messages (through stdout) to a file</strong></p>