Previous topic

medpy.core.logger.Logger.fatal

Next topic

medpy.core.logger.Logger.findCaller

This Page

medpy.core.logger.Logger.filter

Logger.filter(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.

Changed in version 3.2: Allow filters to be just callables.