compass.utilities.logs.ExceptionOnlyFilter#
- class ExceptionOnlyFilter(name='')[source]#
Bases:
Filter
Filter to only pass through Exception logging (errors)
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.
Methods
filter
(record)Determine if the specified record is to be logged.