slack_jira/cmdline/runner.py
def _logging_config(config_parser, disable_existing_loggers=False):
    """
    Helper that allows us to use an existing ConfigParser object to load logging
    configurations instead of a filename.

    Note: this code is essentially copy pasta from `logging.config.fileConfig` except
    we skip loading the file.
    """
    formatters = logging.config._create_formatters(config_parser)

    # critical section
    logging._acquireLock()
    try:
        logging._handlers.clear()
        del logging._handlerList[:]
        # Handlers add themselves to logging._handlers
        handlers = logging.config._install_handlers(config_parser, formatters)
        logging.config._install_loggers(config_parser, handlers, disable_existing_loggers)
    finally:
        logging._releaseLock()

    Helper that allows us to use an existing ConfigParser object to load logging
    configurations instead of a filename.

    Note: this code is essentially copy pasta from `logging.config.fileConfig` except
    we skip loading the file.
    
Helper that allows us to use an existing ConfigParser object to load logging
configurations instead of a filename.

this code is essentially copy pasta from `logging.config.fileConfig` except
we skip loading the file.
Helper that allows us to use an existing ConfigParser object to load logging configurations instead of a filename . this code is essentially copy pasta from ` logging . config . fileConfig ` except we skip loading the file .
def _logging_config(config_parser, disable_existing_loggers=False):
    formatters = logging.config._create_formatters(config_parser)
    logging._acquireLock()
    try:
        logging._handlers.clear()
        del logging._handlerList[:]
        handlers = logging.config._install_handlers(config_parser, formatters)
        logging.config._install_loggers(config_parser, handlers, disable_existing_loggers)
    finally:
        logging._releaseLock()
def _logging_config ( config_parser , disable_existing_loggers = False ) : formatters = logging . config . _create_formatters ( config_parser ) logging . _acquireLock ( ) try : logging . _handlers . clear ( ) del logging . _handlerList [ : ] handlers = logging . config . _install_handlers ( config_parser , formatters ) logging . config . _install_loggers ( config_parser , handlers , disable_existing_loggers ) finally : logging . _releaseLock ( )
Helper that allows us to use an existing ConfigParser object to load logging
configurations instead of a filename.
Helper that allows us to use an existing ConfigParser object to load logging configurations instead of a filename .
"""
    Helper that allows us to use an existing ConfigParser object to load logging
    configurations instead of a filename.

    Note: this code is essentially copy pasta from `logging.config.fileConfig` except
    we skip loading the file.
    """ # critical section # Handlers add themselves to logging._handlers
config_parser
disable_existing_loggers