Skip to content

Commit

Permalink
document werkzeug logger
Browse files Browse the repository at this point in the history
  • Loading branch information
bsolomon1124 authored and davidism committed Feb 4, 2020
1 parent 13b6ef0 commit 4249e01
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/utils.rst
Original file line number Diff line number Diff line change
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 4249e01

Please sign in to comment.