Sets the name of the file to use for logging.
#include "am_log.h" AM_EXPORT am_status_t am_log_set_log_file(const char *name);
This function takes the following parameter:
Pointer to the name of the file to which log records are recorded.
If NULL or empty, logging messages are sent to the stderr stream.
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.