Sun Java System Access Manager 7 2005Q4 C API Reference

am_log_set_levels_from_string()

Sets the logging level for the modules listed in specified string.

Syntax

#include "am_log.h"
AM_EXPORT am_status_t
am_log_set_levels_from_string(const char *module_level_string);

Parameters

This function takes the following parameter:

module_level_string

List of modules to set.

Returns

This function returns am_status_t with one of the following values:

AM_SUCCESS

If no error is detected

AM_INVALID_ARGUMENT

If name or id_ptr is NULL

AM_NSPR_ERROR

If unable to initialize to the logging package

AM_NO_MEMORY

If unable to allocate memory for the new logging module

AM_FAILURE

If unable to allocate memory for the new logging module

Details

The format of the string is:

<ModuleName>[:<Level>][,<ModuleName>[:<Level>]]*

Optional spaces may occur before and after any commas.