def _create_child_logger(parent_logger_name):
    child_logger_name = "child_%s" % parent_logger_name
    if child_logger_name in LOGGERS:
        return LOGGERS[child_logger_name]
    if parent_logger_name in LOGGERS:
        queue = LOGGER_QUEUE_MAP[parent_logger_name]
        logger = _create_queue_logger(child_logger_name, queue)
        LOGGERS[child_logger_name] = logger
    else:
        raise ParentLoggerDoesNotExist(parent_logger_name)

    return LOGGERS[child_logger_name]
dataset/ETHPy150Open openstack/stacktach/stacktach/stacklog.py/_create_child_logger/original