Package logging :: Class Filterer
[show private | hide private]
[frames | no frames]

Class Filterer

Known Subclasses:
Logger

A base class for loggers and handlers which allows them to share common code.
Method Summary
  __init__(self)
Initialize the list of filters to be an empty list.
  addFilter(self, filter)
Add the specified filter to this handler.
  filter(self, record)
Determine if a record is loggable by consulting all the filters.
  removeFilter(self, filter)
Remove the specified filter from this handler.

Method Details

__init__(self)
(Constructor)

Initialize the list of filters to be an empty list.

addFilter(self, filter)

Add the specified filter to this handler.

filter(self, record)

Determine if a record is loggable by consulting all the filters.

The default is to allow the record to be logged; any filter can veto this and the record is then dropped. Returns a zero value if a record is to be dropped, else non-zero.

removeFilter(self, filter)

Remove the specified filter from this handler.

Generated by Epydoc 2.0 on Thu Sep 30 14:39:25 2004 http://epydoc.sf.net