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