This function returns am_status_t with one of the following values:
If the key and value was successfully added to the given log record.
If any error occurs, the type of error indicated by the status value.