webkit
2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
|
Public Member Functions | |
def | __init__ (self, address=('localhost', SYSLOG_UDP_PORT), facility=LOG_USER) |
def | encodePriority (self, facility, priority) |
def | close (self) |
def | emit (self, record) |
Public Attributes | |
address | |
facility | |
socket | |
unixsocket | |
formatter | |
A handler class which sends formatted logging records to a syslog server. Based on Sam Rushing's syslog module: http://www.nightmare.com/squirl/python-ext/misc/syslog.py Contributed by Nicolas Untz (after which minor refactoring changes have been made).
def compat_logging.handlers.SysLogHandler.__init__ | ( | self, | |
address = ('localhost', SYSLOG_UDP_PORT) , |
|||
facility = LOG_USER |
|||
) |
Initialize a handler. If address is specified as a string, UNIX socket is used. If facility is not specified, LOG_USER is used.
def compat_logging.handlers.SysLogHandler.close | ( | self | ) |
Closes the socket.
def compat_logging.handlers.SysLogHandler.emit | ( | self, | |
record | |||
) |
Emit a record. The record is formatted, and then sent to the syslog server. If exception information is present, it is NOT sent to the server.
def compat_logging.handlers.SysLogHandler.encodePriority | ( | self, | |
facility, | |||
priority | |||
) |
Encode the facility and priority. You can pass in strings or integers - if strings are passed, the facility_names and priority_names mapping dictionaries are used to convert them to integers.
compat_logging.handlers.SysLogHandler.address |
compat_logging.handlers.SysLogHandler.facility |
|
static |
compat_logging.handlers.SysLogHandler.formatter |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
compat_logging.handlers.SysLogHandler.socket |
compat_logging.handlers.SysLogHandler.unixsocket |