import logging


def get_logger(name: str) -> logging.Logger:
    """
        To get custom `logging` instance.
        Return a logger with the specified name, creating it if necessary.
        If no name is specified, return the root logger.
    """

    logger = logging.getLogger(name)
    logging.basicConfig(level=logging.INFO)

    return logger