Always log now, even if debug is off.

This commit is contained in:
Armin Ronacher 2014-08-27 01:08:12 +02:00
parent 0ce3db88cf
commit 84ad89ffa4
9 changed files with 68 additions and 21 deletions

View file

@ -99,6 +99,14 @@ The following configuration values are used internally by Flask:
by this.
``USE_X_SENDFILE`` enable/disable x-sendfile
``LOGGER_NAME`` the name of the logger
``LOGGER_HANDLER_POLICY`` the policy of the default logging
handler. The default is ``'always'``
which means that the default logging
handler is always active. ``'debug'``
will only activate logging in debug
mode, ``'production'`` will only log in
production and ``'never'`` disables it
entirely.
``SERVER_NAME`` the name and port number of the server.
Required for subdomain support (e.g.:
``'myapp.dev:5000'``) Note that
@ -229,7 +237,7 @@ The following configuration values are used internally by Flask:
``SESSION_REFRESH_EACH_REQUEST``
.. versionadded:: 1.0
``TEMPLATES_AUTO_RELOAD``
``TEMPLATES_AUTO_RELOAD``, ``LOGGER_HANDLER_POLICY``
Configuring from Files
----------------------

View file

@ -19,6 +19,16 @@ installation, make sure to pass it the ``-U`` parameter::
$ easy_install -U Flask
.. _upgrading-to-10:
Version 1.0
-----------
Flask 1.0 removed the ``debug_log_format`` attribute from Flask
applications. Instead the new ``LOGGER_HANDLER_POLICY`` configuration can
be used to disable the default log handlers and custom log handlers can be
set up.
.. _upgrading-to-010:
Version 0.10