diff --git a/m/log.py b/m/log.py index 1acd44a..08ca6d0 100644 --- a/m/log.py +++ b/m/log.py @@ -33,6 +33,11 @@ class SingleLevelFilter(logging.Filter): """ self.passlevel = passlevel self.reject = reject + def filter(self, record): + if self.reject: + return (record.levelno != self.passlevel) + else: + return (record.levelno == self.passlevel) class Log(object): """