def get_logger():
    """
    Get the global logger
    Args:

    Returns: None

    """
    global global_logger
    global dup_filter
    if global_logger is None:
        dup_filter = DuplicateFilter()
        logger = logging.getLogger("MetaDrive")
        logger.propagate = False
        # create console handler with a higher log level
        ch = logging.StreamHandler()
        # create formatter and add it to the handlers
        ch.setFormatter(CustomFormatter())
        logger.addHandler(ch)
        logger.addFilter(dup_filter)
        global_logger = logger
    return global_logger

    Get the global logger
    Args:

    Returns: None

    
metadrive/engine/logger.py