Skip to content

Added getLevel #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 13, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions adafruit_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down