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

Function _clearExistingHandlers

Lib/logging/config.py:287–291  ·  view source on GitHub ↗

Clear and close existing handlers

()

Source from the content-addressed store, hash-verified

285
286
287def _clearExistingHandlers():
288 """Clear and close existing handlers"""
289 logging._handlers.clear()
290 logging.shutdown(logging._handlerList[:])
291 del logging._handlerList[:]
292
293
294IDENTIFIER = re.compile('^[a-z_][a-z0-9_]*$', re.I)

Callers 2

fileConfigFunction · 0.85
configureMethod · 0.85

Calls 2

clearMethod · 0.45
shutdownMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…