MCPcopy Index your code
hub / github.com/python/cpython / getEffectiveLevel

Method getEffectiveLevel

Lib/logging/__init__.py:1754–1766  ·  view source on GitHub ↗

Get the effective level for this logger. Loop through this logger and its parents in the logger hierarchy, looking for a non-zero logging level. Return the first one found.

(self)

Source from the content-addressed store, hash-verified

1752 self.manager.emittedNoHandlerWarning = True
1753
1754 def getEffectiveLevel(self):
1755 """
1756 Get the effective level for this logger.
1757
1758 Loop through this logger and its parents in the logger hierarchy,
1759 looking for a non-zero logging level. Return the first one found.
1760 """
1761 logger = self
1762 while logger:
1763 if logger.level:
1764 return logger.level
1765 logger = logger.parent
1766 return NOTSET
1767
1768 def isEnabledFor(self, level):
1769 """

Callers 9

isEnabledForMethod · 0.95
__repr__Method · 0.95
getEffectiveLevelMethod · 0.45
__repr__Method · 0.45
_test_levelMethod · 0.45
setUpMethod · 0.45
test_cachingMethod · 0.45
get_preparation_dataFunction · 0.45

Calls

no outgoing calls

Tested by 4

_test_levelMethod · 0.36
setUpMethod · 0.36
test_cachingMethod · 0.36