logging.getHandlerNames
Prev: logging.getHandlerByName | Up: logging | Next: logging.getLevelName
Rel: logging.addLevelName, logging.basicConfig, logging.BufferingFormatter, logging.captureWarnings
Ref: docs.python.org — logging.getHandlerNames
Tags: #public #python3 #stdlib #logging
Import
import logging
from logging import getHandlerNames
Signature & Overview
logging.getHandlerNames()
Return all known handler names as an immutable set.
Usage
import logging
names = logging.getHandlerNames()
assert isinstance(names, frozenset)
Gotchas
- Requires Python 3.12+: Returns a
frozensetof all currently named handlers.
REPL Inspect
from logging import getHandlerNames
help(getHandlerNames)
Linked from
Related notes
- tuts/python3/stdlib_module/logging/getHandlerByName Linked here; links to this page; shared tags: #logging, #stdlib
- tuts/python3/stdlib_module/logging/getLevelName Linked here; links to this page; shared tags: #logging, #stdlib
- tuts/python3/stdlib_module/logging Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/logging/addLevelName Linked here; shared tags: #logging, #stdlib
- tuts/python3/stdlib_module/logging/basicConfig Linked here; shared tags: #logging, #stdlib
- tuts/python3/stdlib_module/logging/BufferingFormatter Linked here; shared tags: #logging, #stdlib
- tuts/python3/stdlib_module/logging/captureWarnings Linked here; shared tags: #logging, #stdlib
- tuts/python3/stdlib_module/logging/critical shared tags: #logging, #stdlib
- tuts/python3/stdlib_module/logging/debug shared tags: #logging, #stdlib
- tuts/python3/stdlib_module/logging/disable shared tags: #logging, #stdlib