Package logging :: Module handlers
[show private | hide private]
[frames | no frames]

Module 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, and influenced by Apache's log4j system.

Should work under Python versions >= 1.5.2, except that source line information is not available unless 'sys._getframe()' is.

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

To use, simply 'import logging' and log away!
Classes
BaseRotatingHandler Base class for handlers that rotate log files at a certain point.
BufferingHandler A handler class which buffers logging records in memory.
DatagramHandler A handler class which writes logging records, in pickle format, to a datagram socket.
HTTPHandler A class which sends records to a Web server, using either GET or POST semantics.
MemoryHandler A handler class which buffers logging records in memory, periodically flushing them to a target handler.
NTEventLogHandler A handler class which sends events to the NT Event Log.
RotatingFileHandler 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 A handler class which sends an SMTP email for each logging event.
SocketHandler A handler class which writes logging records, in pickle format, to a streaming socket.
SysLogHandler A handler class which sends formatted logging records to a syslog server.
TimedRotatingFileHandler Handler for logging to a file, rotating the log file at certain timed intervals.

Variable Summary
int DEFAULT_HTTP_LOGGING_PORT = 9022                                                                  
int DEFAULT_SOAP_LOGGING_PORT = 9023                                                                  
int DEFAULT_TCP_LOGGING_PORT = 9020                                                                  
int DEFAULT_UDP_LOGGING_PORT = 9021                                                                  
int SYSLOG_UDP_PORT = 514                                                                   

Variable Details

DEFAULT_HTTP_LOGGING_PORT

Type:
int
Value:
9022                                                                  

DEFAULT_SOAP_LOGGING_PORT

Type:
int
Value:
9023                                                                  

DEFAULT_TCP_LOGGING_PORT

Type:
int
Value:
9020                                                                  

DEFAULT_UDP_LOGGING_PORT

Type:
int
Value:
9021                                                                  

SYSLOG_UDP_PORT

Type:
int
Value:
514