def __init__(self, invert=False): logging.Filter.__init__(self) self._invert = invert self.exp = re.compile(r"Post|Meta|Process")