This function returns am_log_level_t with one of the following values:
If the logging level is set properly.
If the specified module is invalid.