Previous topic

medpy.core.logger.Logger.handle

Next topic

medpy.core.logger.Logger.info

This Page

medpy.core.logger.Logger.hasHandlers

Logger.hasHandlers()[source]

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.