import logging


def _get_root_handler(name):
    """ Get root logger Handler by name

    Parameters
    ----------
    name: str
        Handler name

    Returns
    -------
    logging.Handler
    """

    root_logger = logging.getLogger('')

    for handler in root_logger.handlers:
        if handler.name == name:
            return handler

    return None