PyDocs

Nav

Generic Operating System Services

Logger.hasHandlers

logging

method of Logger · Added in 3.2 (source)
  • Logger.hasHandlers()
See if this logger has any handlers configured.

Loop through all handlers for this logger and its parents in the
logger hierarchy. Return True if a handler was found, else False.
Stop searching up the hierarchy whenever a logger with the "propagate"
attribute set to zero is found - that will be the last logger which
is checked for the existence of handlers.
0 Examples
No examples for logging/Logger.hasHandlers.
See Also
No see-alsos for logging/Logger.hasHandlers
0 Notes
No notes for Logger.hasHandlers