Sun Java System Access Manager 7.1 C API Reference

am_log_set_levels_from_string()

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

Details

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.

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

Pointer to the string containing the list of modules and the respective levels.

Returns

This function returns one of the following values of the am_status_t enumeration (defined in the <am_types.h> header file):

AM_SUCCESS

If the levels were successfully set.

AM_INVALID_ARGUMENT

If module_level_string is NULL.

AM_FAILURE

If any other error is detected.