• Home
  • Raw
  • Download

Lines Matching full:logging

1 :mod:`logging.handlers` --- Logging handlers
4 .. module:: logging.handlers
5 :synopsis: Handlers for the logging module.
10 **Source code:** :source:`Lib/logging/handlers.py`
17 * :ref:`Basic Tutorial <logging-basic-tutorial>`
18 * :ref:`Advanced Tutorial <logging-advanced-tutorial>`
19 * :ref:`Logging Cookbook <logging-cookbook>`
23 .. currentmodule:: logging
27 :class:`NullHandler`) are actually defined in the :mod:`logging` module itself,
35 The :class:`StreamHandler` class, located in the core :mod:`logging` package,
36 sends logging output to streams such as *sys.stdout*, *sys.stderr* or any
44 specified, the instance will use it for logging output; otherwise, *sys.stderr*
59 :meth:`close` method is inherited from :class:`~logging.Handler` and so
91 The :class:`FileHandler` class, located in the core :mod:`logging` package,
92 sends logging output to a disk file. It inherits the output functionality from
99 opened and used as the stream for logging. If *mode* is not specified,
120 Note that if the file was closed due to logging shutdown at exit and the file
131 The :class:`NullHandler` class, located in the core :mod:`logging` package,
161 .. currentmodule:: logging.handlers
163 The :class:`WatchedFileHandler` class, located in the :mod:`logging.handlers`
164 module, is a :class:`FileHandler` which watches the file it is logging to. If
175 open log files cannot be moved or renamed - logging opens the files with
184 file is opened and used as the stream for logging. If *mode* is not specified,
216 The :class:`BaseRotatingHandler` class, located in the :mod:`logging.handlers`
310 The :class:`RotatingFileHandler` class, located in the :mod:`logging.handlers`
317 file is opened and used as the stream for logging. If *mode* is not specified,
361 :mod:`logging.handlers` module, supports rotation of disk log files at certain
368 specified file is opened and used as the stream for logging. On rotating it also
434 if, during application execution, logging output is generated more
436 with times separated by a minute. If, on the other hand, logging messages
469 The :class:`SocketHandler` class, located in the :mod:`logging.handlers` module,
470 sends logging output to a network socket. The base class uses a TCP socket.
493 :class:`~logging.LogRecord`, use the :func:`~logging.makeLogRecord`
565 The :class:`DatagramHandler` class, located in the :mod:`logging.handlers`
566 module, inherits from :class:`SocketHandler` to support sending logging messages
584 :class:`~logging.LogRecord`, use the :func:`~logging.makeLogRecord`
605 The :class:`SysLogHandler` class, located in the :mod:`logging.handlers` module,
606 supports sending logging messages to a remote or local Unix syslog.
750 Maps a logging level name to a syslog priority name.
762 The :class:`NTEventLogHandler` class, located in the :mod:`logging.handlers`
763 module, supports sending logging messages to a local Windows NT, Windows 2000 or
829 The :class:`SMTPHandler` class, located in the :mod:`logging.handlers` module,
830 supports sending logging messages to an email address via SMTP.
870 The :class:`MemoryHandler` class, located in the :mod:`logging.handlers` module,
871 supports buffering of logging records in memory, periodically flushing them to a
876 :class:`BufferingHandler`, which is an abstract class. This buffers logging
885 *capacity* means the number of logging records buffered.
949 The :class:`HTTPHandler` class, located in the :mod:`logging.handlers` module,
950 supports sending logging messages to a web server, using either ``GET`` or
975 subset of :class:`~logging.LogRecord` is to be sent to the web server, or
986 :meth:`~logging.Handler.setFormatter` to specify a
987 :class:`~logging.Formatter` for a :class:`HTTPHandler` has no effect.
988 Instead of calling :meth:`~logging.Handler.format`, this handler calls
1001 The :class:`QueueHandler` class, located in the :mod:`logging.handlers` module,
1002 supports sending logging messages to a queue, such as those implemented in the
1007 logging. This is important in web applications and also other service
1026 :meth:`~logging.Handler.handleError` method is called to handle the
1028 :attr:`logging.raiseExceptions` is ``False``) or a message printed to
1029 ``sys.stderr`` (if :attr:`logging.raiseExceptions` is ``True``).
1059 The :class:`QueueListener` class, located in the :mod:`logging.handlers`
1060 module, supports receiving logging messages from a queue, such as those
1069 logging. This is important in web applications and also other service
1143 Module :mod:`logging`
1144 API reference for the logging module.
1146 Module :mod:`logging.config`
1147 Configuration API for the logging module.