From 430effb6a91fa136f40f938581157bbaa70bbb95 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Thu, 1 Jan 2009 13:05:13 +0000 Subject: Handlers are in the `logging.handlers` module. --- Doc/library/logging.rst | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v0.12