summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2010-12-12 13:49:39 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2010-12-12 13:49:39 (GMT)
commit0e65cf0b6ab397f3f67c2b516af7b9fba05604bc (patch)
tree0822fc2352f32f819078ab41046736ced58e2b2d /Doc
parent5286ccfdf8629a6dccad256696cc60000938a45c (diff)
downloadcpython-0e65cf0b6ab397f3f67c2b516af7b9fba05604bc.zip
cpython-0e65cf0b6ab397f3f67c2b516af7b9fba05604bc.tar.gz
cpython-0e65cf0b6ab397f3f67c2b516af7b9fba05604bc.tar.bz2
Logging documentation - further update.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/logging.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst
index 8cfb7d5..e6e285e 100644
--- a/Doc/library/logging.rst
+++ b/Doc/library/logging.rst
@@ -146,6 +146,11 @@ messages::
INFO:root:So should this
WARNING:root:And this, too
+The call to :func:`basicConfig` should come *before* any calls to :func:`debug`,
+:func:`info` etc. As it's intended as a one-off simple configuration facility,
+only the first call will actually do anything: subsequent calls are effectively
+no-ops.
+
This example also shows how you can set the logging level which acts as the
threshold for tracking. In this case, because we set the threshold to
``DEBUG``, all of the messages were printed.