Handlers are in the `logging.handlers` module.

This commit is contained in:
Georg Brandl 2009-01-01 13:05:13 +00:00
parent da550b060b
commit 430effb6a9
1 changed files with 4 additions and 0 deletions

View File

@ -1559,6 +1559,8 @@ subclasses. However, the :meth:`__init__` method in subclasses needs to call
StreamHandler StreamHandler
^^^^^^^^^^^^^ ^^^^^^^^^^^^^
.. module:: logging.handlers
The :class:`StreamHandler` class, located in the core :mod:`logging` package, The :class:`StreamHandler` class, located in the core :mod:`logging` package,
sends logging output to streams such as *sys.stdout*, *sys.stderr* or any 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` 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 Formatter Objects
----------------- -----------------
.. currentmodule:: logging
:class:`Formatter`\ s have the following attributes and methods. They are :class:`Formatter`\ s have the following attributes and methods. They are
responsible for converting a :class:`LogRecord` to (usually) a string which can responsible for converting a :class:`LogRecord` to (usually) a string which can
be interpreted by either a human or an external system. The base be interpreted by either a human or an external system. The base