Sets the level for the logging modules listed in a specified string.
The format of the string must be:
ModuleName[:Level][,ModuleName[:Level]]* |
Optional spaces may occur before and after any commas. The comma, brackets and asterisk in the second term signifies that it can occur 0 or more times.
#include "am_log.h" AM_EXPORT am_status_t am_log_set_levels_from_string(const char *module_level_string);
This function takes the following parameter:
Pointer to the string containing the list of modules and the respective levels.
This function returns one of the following values of the am_status_t enumeration (defined in the <am_types.h> header file):
If the levels were successfully set.
If module_level_string is NULL.
If any other error is detected.