MCPcopy Index your code
hub / github.com/RustPython/RustPython / setLevel

Method setLevel

Lib/logging/__init__.py:1493–1498  ·  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

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

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