Adds a new module to the list of known logging modules.
#include "am_log.h" AM_EXPORT am_status_t am_log_add_module(const char *name, am_log_module_id_t *id_ptr);
This function takes the following parameters:
The name to associate with the new module.
Where to store the id of the logging module.
This function returns am_status_t with one of the following values:
If no error is detected.
If name or id_ptr is NULL.
If unable to initialize to the logging package.
If unable to allocate memory for the new logging module.
If any other error is detected.
If a module of the same name already exists, then the module ID of that module is returned.