logging.handlers

Additional handlers for the logging package for Python. The core package is based on PEP 282 and comments thereto in comp.lang.python.

Copyright (C) 2001-2013 Vinay Sajip. All Rights Reserved.

To use, simply ‘import logging.handlers’ and log away!

Classes

BaseRotatingHandler(filename, mode[, ...]) Base class for handlers that rotate log files at a certain point.
BufferingHandler(capacity) A handler class which buffers logging records in memory.
DatagramHandler(host, port) A handler class which writes logging records, in pickle format, to a datagram socket.
HTTPHandler(host, url[, method]) A class which sends records to a Web server, using either GET or POST semantics.
MemoryHandler(capacity[, flushLevel, target]) A handler class which buffers logging records in memory, periodically flushing them to a target handler.
NTEventLogHandler(appname[, dllname, logtype]) A handler class which sends events to the NT Event Log.
RotatingFileHandler(filename[, mode, ...]) Handler for logging to a set of files, which switches from one file to the next when the current file reaches a certain size.
SMTPHandler(mailhost, fromaddr, toaddrs, subject) A handler class which sends an SMTP email for each logging event.
SocketHandler(host, port) A handler class which writes logging records, in pickle format, to a streaming socket.
SysLogHandler([address, facility, socktype]) A handler class which sends formatted logging records to a syslog server.
TimedRotatingFileHandler(filename[, when, ...]) Handler for logging to a file, rotating the log file at certain timed intervals.
WatchedFileHandler(filename[, mode, ...]) A handler for logging to a file, which watches the file to see if it has changed while in use.