Skip to content

Commit

Permalink
Merge pull request #1708 from bsolomon1124/master
Browse files Browse the repository at this point in the history
Document Werkzeug's logger + default level/handler
  • Loading branch information
davidism committed Feb 4, 2020
2 parents 13b6ef0 + 4249e01 commit 07e3c97
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/utils.rst
Expand Up @@ -76,3 +76,19 @@ Security Helpers
.. autofunction:: pbkdf2_hex

.. autofunction:: pbkdf2_bin


Logging
=======

Werkzeug uses standard Python :mod:`logging`. The logger is named
``"werkzeug"``.

.. code-block:: python
import logging
logger = logging.getLogger("werkzeug")
If the logger level is not set, it will be set to :data:`~logging.INFO`
on first use. If there is no handler for that level, a
:class:`~logging.StreamHandler` is added.

0 comments on commit 07e3c97

Please sign in to comment.