webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Public Attributes | List of all members
compat_logging.Filter Class Reference

Public Member Functions

def __init__ (self, name='')
 
def filter (self, record)
 

Public Attributes

 name
 
 nlen
 

Detailed Description

Filter instances are used to perform arbitrary filtering of LogRecords.

Loggers and Handlers can optionally use Filter instances to filter
records as desired. The base filter class only allows events which are
below a certain point in the logger hierarchy. For example, a filter
initialized with "A.B" will allow events logged by loggers "A.B",
"A.B.C", "A.B.C.D", "A.B.D" etc. but not "A.BB", "B.A.B" etc. If
initialized with the empty string, all events are passed.

Constructor & Destructor Documentation

◆ __init__()

def compat_logging.Filter.__init__ (   self,
  name = '' 
)
Initialize a filter.

Initialize with the name of the logger which, together with its
children, will have its events allowed through the filter. If no
name is specified, allow every event.

Member Function Documentation

◆ filter()

def compat_logging.Filter.filter (   self,
  record 
)
Determine if the specified record is to be logged.

Is the specified record to be logged? Returns 0 for no, nonzero for
yes. If deemed appropriate, the record may be modified in-place.

Member Data Documentation

◆ name

compat_logging.Filter.name

◆ nlen

compat_logging.Filter.nlen

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