Package logging :: Class Filterer
[frames | no frames]

Class Filterer

Known Subclasses:
Logger

A base class for loggers and handlers which allows them to share common code.
Method Summary
  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

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.1 on Thu Oct 19 03:18:13 2006 http://epydoc.sf.net