webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
compat_logging.handlers.SysLogHandler Class Reference
Inheritance diagram for compat_logging.handlers.SysLogHandler:

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
 

Static Public Attributes

 LOG_EMERG
 
 LOG_ALERT
 
 LOG_CRIT
 
 LOG_ERR
 
 LOG_WARNING
 
 LOG_NOTICE
 
 LOG_INFO
 
 LOG_DEBUG
 
 LOG_KERN
 
 LOG_USER
 
 LOG_MAIL
 
 LOG_DAEMON
 
 LOG_AUTH
 
 LOG_SYSLOG
 
 LOG_LPR
 
 LOG_NEWS
 
 LOG_UUCP
 
 LOG_CRON
 
 LOG_AUTHPRIV
 
 LOG_LOCAL0
 
 LOG_LOCAL1
 
 LOG_LOCAL2
 
 LOG_LOCAL3
 
 LOG_LOCAL4
 
 LOG_LOCAL5
 
 LOG_LOCAL6
 
 LOG_LOCAL7
 
 priority_names
 
 facility_names
 
 log_format_string
 

Detailed Description

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).

Constructor & Destructor Documentation

◆ __init__()

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.

Member Function Documentation

◆ close()

def compat_logging.handlers.SysLogHandler.close (   self)
Closes the socket.

◆ emit()

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.

◆ encodePriority()

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.

Member Data Documentation

◆ address

compat_logging.handlers.SysLogHandler.address

◆ facility

compat_logging.handlers.SysLogHandler.facility

◆ facility_names

compat_logging.handlers.SysLogHandler.facility_names
static

◆ formatter

compat_logging.handlers.SysLogHandler.formatter

◆ LOG_ALERT

compat_logging.handlers.SysLogHandler.LOG_ALERT
static

◆ LOG_AUTH

compat_logging.handlers.SysLogHandler.LOG_AUTH
static

◆ LOG_AUTHPRIV

compat_logging.handlers.SysLogHandler.LOG_AUTHPRIV
static

◆ LOG_CRIT

compat_logging.handlers.SysLogHandler.LOG_CRIT
static

◆ LOG_CRON

compat_logging.handlers.SysLogHandler.LOG_CRON
static

◆ LOG_DAEMON

compat_logging.handlers.SysLogHandler.LOG_DAEMON
static

◆ LOG_DEBUG

compat_logging.handlers.SysLogHandler.LOG_DEBUG
static

◆ LOG_EMERG

compat_logging.handlers.SysLogHandler.LOG_EMERG
static

◆ LOG_ERR

compat_logging.handlers.SysLogHandler.LOG_ERR
static

◆ log_format_string

compat_logging.handlers.SysLogHandler.log_format_string
static

◆ LOG_INFO

compat_logging.handlers.SysLogHandler.LOG_INFO
static

◆ LOG_KERN

compat_logging.handlers.SysLogHandler.LOG_KERN
static

◆ LOG_LOCAL0

compat_logging.handlers.SysLogHandler.LOG_LOCAL0
static

◆ LOG_LOCAL1

compat_logging.handlers.SysLogHandler.LOG_LOCAL1
static

◆ LOG_LOCAL2

compat_logging.handlers.SysLogHandler.LOG_LOCAL2
static

◆ LOG_LOCAL3

compat_logging.handlers.SysLogHandler.LOG_LOCAL3
static

◆ LOG_LOCAL4

compat_logging.handlers.SysLogHandler.LOG_LOCAL4
static

◆ LOG_LOCAL5

compat_logging.handlers.SysLogHandler.LOG_LOCAL5
static

◆ LOG_LOCAL6

compat_logging.handlers.SysLogHandler.LOG_LOCAL6
static

◆ LOG_LOCAL7

compat_logging.handlers.SysLogHandler.LOG_LOCAL7
static

◆ LOG_LPR

compat_logging.handlers.SysLogHandler.LOG_LPR
static

◆ LOG_MAIL

compat_logging.handlers.SysLogHandler.LOG_MAIL
static

◆ LOG_NEWS

compat_logging.handlers.SysLogHandler.LOG_NEWS
static

◆ LOG_NOTICE

compat_logging.handlers.SysLogHandler.LOG_NOTICE
static

◆ LOG_SYSLOG

compat_logging.handlers.SysLogHandler.LOG_SYSLOG
static

◆ LOG_USER

compat_logging.handlers.SysLogHandler.LOG_USER
static

◆ LOG_UUCP

compat_logging.handlers.SysLogHandler.LOG_UUCP
static

◆ LOG_WARNING

compat_logging.handlers.SysLogHandler.LOG_WARNING
static

◆ priority_names

compat_logging.handlers.SysLogHandler.priority_names
static

◆ socket

compat_logging.handlers.SysLogHandler.socket

◆ unixsocket

compat_logging.handlers.SysLogHandler.unixsocket

The documentation for this class was generated from the following file: