title: Using Flask and native Python logging?
body: <p>The trouble with Flask logging (i.e., app.logger.info(...), etc.) is that sub modules don't use it, so it seems to me that the only way to globally configure the app's logging is via the underlying python logging mechanism: e.g., </p>
  
  <pre><code>logging.config.fileConfig('config/logging.conf')
  </code></pre>
  
  <p>But this doesn't configure Flask's default handlers, so for example, the HTTP logging is not configured. So I get mixed logs:</p>
  
  <pre><code>2015-07-28 14:57:47,320 [main.py][INFO] Starting...           # Python log
  [2015-07-28 14:58:49] "GET /demo HTTP/1.1" 200 956 0.318825   # Flask log
  </code></pre>
  
  <p>Can anyone suggest the standard practice for globally configuring logging via a configuration file (i.e., so that I can easily configure individual packages).</p>
  
  <p>ALSO, I cant seem to remove the HTTP logging (GET, etc.) to stderr (which I presume come from werkzeug); setting logging.getLogger('werkzeug').setLevel() only affects the werkzeug logs that are not related to HTTP logging.</p>
  
  <p>Thanks.</p>