def METHOD_NAME(spec_path: str, error_message: str, failed_field: Optional[str] = None) -> None:
    """
    Logs error in following format: <BOLD>SPEC PATH</BOLD> ERROR MSG <RED>FIELD NAME</RED>
    """
    error = f"\033[1m{spec_path}\033[0m: {error_message}"
    if failed_field:
        error += f" \x1b[31;1m{failed_field}\033[0m"
    logging.error(error)