diff options
author | Georg Brandl <georg@python.org> | 2009-01-01 13:05:13 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-01-01 13:05:13 (GMT) |
commit | 430effb6a91fa136f40f938581157bbaa70bbb95 (patch) | |
tree | cd65afa0ba73644f9ed4182f4ac42e27ad09e397 /Doc/library/logging.rst | |
parent | da550b060bd11fb753e75c6392523e7900f73ef2 (diff) | |
download | cpython-430effb6a91fa136f40f938581157bbaa70bbb95.zip cpython-430effb6a91fa136f40f938581157bbaa70bbb95.tar.gz cpython-430effb6a91fa136f40f938581157bbaa70bbb95.tar.bz2 |
Handlers are in the `logging.handlers` module.
Diffstat (limited to 'Doc/library/logging.rst')
-rw-r--r-- | Doc/library/logging.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst index 483b739..b34e7e4 100644 --- a/Doc/library/logging.rst +++ b/Doc/library/logging.rst @@ -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 |