def formatter(log: dict) -> str:
    """
    Format log colors based on level.

    :param log: Logged event stored as map containing contextual metadata.
    :type log: dict
    :returns: str
    """
    if log["level"].name == "WARNING":
        return (
            "<light-cyan>{time:MM-DD-YYYY HH:mm:ss}</light-cyan> | "
            "<light-yellow>{level}</light-yellow>: "
            "<light-white>{message}</light-white> \n"
        )
    elif log["level"].name == "ERROR":
        return (
            "<light-cyan>{time:MM-DD-YYYY HH:mm:ss}</light-cyan> | "
            "<light-red>{level}</light-red>: "
            "<light-white>{message}</light-white> \n"
        )
    else:
        return (
            "<fg #aad1f7>{time:MM-DD-YYYY HH:mm:ss}</fg #aad1f7> | "
            "<fg #67c9c4>{level}</fg #67c9c4>: "
            "<light-white>{message}</light-white> \n"
        )