]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Handlers are in the `logging.handlers` module.
authorGeorg Brandl <georg@python.org>
Thu, 1 Jan 2009 13:05:13 +0000 (13:05 +0000)
committerGeorg Brandl <georg@python.org>
Thu, 1 Jan 2009 13:05:13 +0000 (13:05 +0000)
Doc/library/logging.rst

index 483b739a2b0084f2eb83ba3d079e99a84c5a2603..b34e7e4db6c0d5b2ecd36bd7425cd8dcf92bd93d 100644 (file)
@@ -1559,6 +1559,8 @@ subclasses. However, the :meth:`__init__` method in subclasses needs to call
 StreamHandler
 ^^^^^^^^^^^^^
 
+.. module:: logging.handlers
+
 The :class:`StreamHandler` class, located in the core :mod:`logging` package,
 sends logging output to streams such as *sys.stdout*, *sys.stderr* or any
 file-like object (or, more precisely, any object which supports :meth:`write`
@@ -2065,6 +2067,8 @@ supports sending logging messages to a Web server, using either ``GET`` or
 Formatter Objects
 -----------------
 
+.. currentmodule:: logging
+
 :class:`Formatter`\ s have the following attributes and methods. They are
 responsible for converting a :class:`LogRecord` to (usually) a string which can
 be interpreted by either a human or an external system. The base