Skip to content

Commit

Permalink
Document logging behavior better
Browse files Browse the repository at this point in the history
ref #16
  • Loading branch information
hynek committed Jun 29, 2020
1 parent 2f2f32f commit a459ccb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docs/tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -230,5 +230,8 @@ Firstly, you can tell it to generate a help string using `environ.generate_help`
APP_SUBCONFIG_SIT (Required): Another example message.
APP_SUBCONFIG_AMET (Required)

The other option is to activate debug-level logging for the ``environ_config`` logger by setting its level to ``logging.WARNING``.
*environ-config* will tell you what its looking for in real time.
The other option is to activate debug-level logging for the ``environ_config`` logger by setting its level to ``logging.DEBUG``.
*environ-config* will tell you what its looking for in real time::

import logging
logging.getLogger("environ_config").setLevel("DEBUG")

0 comments on commit a459ccb

Please sign in to comment.