[Python-checkins] r87181 - python/branches/py3k/Doc/library/logging.rst
vinay.sajip
python-checkins at python.org
Sun Dec 12 14:49:39 CET 2010
Author: vinay.sajip
Date: Sun Dec 12 14:49:39 2010
New Revision: 87181
Log:
Logging documentation - further update.
Modified:
python/branches/py3k/Doc/library/logging.rst
Modified: python/branches/py3k/Doc/library/logging.rst
==============================================================================
--- python/branches/py3k/Doc/library/logging.rst (original)
+++ python/branches/py3k/Doc/library/logging.rst Sun Dec 12 14:49:39 2010
@@ -146,6 +146,11 @@
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.
More information about the Python-checkins
mailing list