Get a logger by name.

def get_logger(name):
        """Get a logger by name."""
        if name is None:
            return NoLogger()

        logger = logging.getLogger(name)
        if Logger.use_external_configuration:
            logger.propagate = False
        return logger