def get_logger(entity):
    """
        Retrieves loggers from the enties fully scoped name.

            get_logger(Replay)     -> sc2reader.replay.Replay
            get_logger(get_logger) -> sc2reader.utils.get_logger

        :param entity: The entity for which we want a logger.
    """
    try:
        return logging.getLogger(entity.__module__+'.'+entity.__name__)

    except __HOLE__:
        raise TypeError("Cannot retrieve logger for {0}.".format(entity))
dataset/ETHPy150Open GraylinKim/sc2reader/sc2reader/log_utils.py/get_logger