kopia lustrzana https://github.com/micropython/micropython-lib
logging: Add setLevel() method.
rodzic
a93d0ee87b
commit
09c59c4704
|
@ -30,6 +30,9 @@ class Logger:
|
|||
return l
|
||||
return "LVL%s" % level
|
||||
|
||||
def setLevel(self, level):
|
||||
self.level = level
|
||||
|
||||
def isEnabledFor(self, level):
|
||||
return level >= (self.level or _level)
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue