summaryrefslogtreecommitdiffstats
path: root/Doc/library/logging.rst
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2009-01-10 19:22:57 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2009-01-10 19:22:57 (GMT)
commitc2211adcc1af6ebd71fb77873d877d77849c0b52 (patch)
tree06114856562684c54aa358901ee7011c1ac59599 /Doc/library/logging.rst
parentda62f81d1d048808dbff1f96c5c4db366dc52149 (diff)
downloadcpython-c2211adcc1af6ebd71fb77873d877d77849c0b52.zip
cpython-c2211adcc1af6ebd71fb77873d877d77849c0b52.tar.gz
cpython-c2211adcc1af6ebd71fb77873d877d77849c0b52.tar.bz2
Corrected minor typo and added .currentmodule directives to fix missing cross-references.
Diffstat (limited to 'Doc/library/logging.rst')
-rw-r--r--Doc/library/logging.rst11
1 files changed, 10 insertions, 1 deletions
diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst
index b92cc7f..cc055ac 100644
--- a/Doc/library/logging.rst
+++ b/Doc/library/logging.rst
@@ -121,7 +121,7 @@ Another useful feature of the logging API is the ability to produce different
messages at different log levels. This allows you to instrument your code with
debug messages, for example, but turning the log level down so that those debug
messages are not written for your production system. The default levels are
-``CRITICAL``, ``ERROR``, ``WARNING``, ``INFO``, ``DEBUG`` and ``UNSET``.
+``CRITICAL``, ``ERROR``, ``WARNING``, ``INFO``, ``DEBUG`` and ``NOTSET``.
The logger, handler, and log message call each specify a level. The log message
is only emitted if the handler and logger are configured to emit messages of
@@ -532,6 +532,8 @@ provided:
#. :class:`FileHandler` instances send error messages to disk files.
+.. currentmodule:: logging.handlers
+
#. :class:`BaseRotatingHandler` is the base class for handlers that rotate log
files at a certain point. It is not meant to be instantiated directly. Instead,
use :class:`RotatingFileHandler` or :class:`TimedRotatingFileHandler`.
@@ -561,6 +563,13 @@ provided:
#. :class:`HTTPHandler` instances send error messages to an HTTP server using
either ``GET`` or ``POST`` semantics.
+#. :class:`WatchedFileHandler` instances watch the file they are logging to. If
+the file changes, it is closed and reopened using the file name. This handler
+is only useful on Unix-like systems; Windows does not support the underlying
+mechanism used.
+
+.. currentmodule:: logging
+
#. :class:`NullHandler` instances do nothing with error messages. They are used
by library developers who want to use logging, but want to avoid the "No
handlers could be found for logger XXX" message which can be displayed if