TabbycatDebate/tabbycat

View on GitHub
tabbycat/utils/logging.py

Summary

Maintainability
A
0 mins
Test Coverage
import logging


class ExceptFilter(logging.Filter):
    """The negative of the base Python filter: Only allows records *not* below
    a certain point in the logger hierarchy.
    See: https://docs.python.org/3/library/logging.html#filter-objects
    """

    def filter(self, record):
        return not super().filter(record)