This function returns one of the following values of the am_status_t enumeration (defined in the <am_types.h> header file):
If the logging file is successfully set.
If unable to allocate memory for internal data structures.
If an error of any type occurs.