def _handle_existing_loggers(existing, child_loggers, disable_existing):
 root = logging.root
 for log in existing:
  logger = root.manager.loggerDict[log]
  if (log in child_loggers):
   logger.level = logging.NOTSET
   logger.handlers = []
   logger.propagate = True
  else:
   logger.disabled = disable_existing

def _handle_existing_loggers ( existing , child_loggers , disable_existing ) : root = logging . root for log in existing : logger = root . manager . loggerDict [ log ] if ( log in child_loggers ) : logger . level = logging . NOTSET logger . handlers = [ ] logger . propagate = True else : logger . disabled = disable_existing
when configuring logging .