public boolean logIfAllowed() {
        return logIfAllowed;
    }
Indicates if audit logs tracking ALLOWED access should include this action if result is
ALLOWED. The flag is true if access to a resource is granted while processing the request as a
result of this authorization. The flag is false only for requests used to describe access where
no operation on the resource is actually performed based on the authorization result.
clients/src/main/java/org/apache/kafka/server/authorizer/Action.java