Skip to content

Commit 4f6e6c3

Browse files
authored
Merge pull request #15 from jimbobbennett/master
Added getLevel
2 parents b4eb87c + 333df2d commit 4f6e6c3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

adafruit_logging.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,14 @@ def setLevel(self, value):
145145
"""
146146
self._level = value
147147

148+
def getEffectiveLevel(self):
149+
"""Get the effective level for this logger.
150+
151+
:return: the lowest level to output
152+
153+
"""
154+
return self._level
155+
148156
def addHandler(self, hldr):
149157
"""Sets the handler of this logger to the specified handler.
150158
*NOTE* this is slightly different from the CPython equivalent which adds

0 commit comments

Comments
 (0)