diff --git a/adafruit_logging.py b/adafruit_logging.py index 3beed82..6fc37be 100644 --- a/adafruit_logging.py +++ b/adafruit_logging.py @@ -145,6 +145,14 @@ def setLevel(self, value): """ self._level = value + def getEffectiveLevel(self): + """Get the effective level for this logger. + + :return: the lowest level to output + + """ + return self._level + def addHandler(self, hldr): """Sets the handler of this logger to the specified handler. *NOTE* this is slightly different from the CPython equivalent which adds