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