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

Method setLevel

Lib/logging/__init__.py:1494–1499  ·  view source on GitHub ↗

Set the logging level of this logger. level must be an int or a str.

(self, level)

Source from the content-addressed store, hash-verified

1492 self._cache = {}
1493
1494 def setLevel(self, level):
1495 """
1496 Set the logging level of this logger. level must be an int or a str.
1497 """
1498 self.level = _checkLevel(level)
1499 self.manager._clear_cache()
1500
1501 def debug(self, msg, *args, **kwargs):
1502 """

Callers 15

_install_handlersFunction · 0.45
_handle_existing_loggersFunction · 0.45
_install_loggersFunction · 0.45
configureMethod · 0.45
configure_handlerMethod · 0.45
common_logger_configMethod · 0.45
setLevelMethod · 0.45
basicConfigFunction · 0.45
__enter__Method · 0.45
__exit__Method · 0.45
test_enable_loggingMethod · 0.45
test_levelMethod · 0.45

Calls 2

_checkLevelFunction · 0.85
_clear_cacheMethod · 0.80

Tested by 15

test_enable_loggingMethod · 0.36
test_levelMethod · 0.36
test_filenameMethod · 0.36
setUpModuleFunction · 0.36
setUpMethod · 0.36
tearDownMethod · 0.36
test_flatMethod · 0.36
test_nested_explicitMethod · 0.36
test_nested_inheritedMethod · 0.36
test_logger_filterMethod · 0.36