import logging


def create_logger(logger_name: str) -> logging.Logger:
    """Set up logging using the `logger_name`"""

    logger = logging.getLogger(logger_name)

    # Create console handler if not already present
    if not logger.handlers:
        ch = logging.StreamHandler()
        formatter = logging.Formatter(
            "%(asctime)s - %(name)s - %(levelname)s - %(message)s"
        )
        ch.setFormatter(formatter)
        logger.addHandler(ch)

    return logger