From: Georg Brandl Date: Thu, 1 Jan 2009 13:05:13 +0000 (+0000) Subject: Handlers are in the `logging.handlers` module. X-Git-Tag: v2.7a1~2442 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=430effb6a91fa136f40f938581157bbaa70bbb95;p=thirdparty%2FPython%2Fcpython.git Handlers are in the `logging.handlers` module. --- diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst index 483b739a2b00..b34e7e4db6c0 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