Adds a new logging file (for a specific function or feature) to the OpenSSO Enterprise Logging Service.
The currently used module file names are:
AuthService
NamingService
PolicyService
SessionService
PolicyEngine
ServiceEngine
Notification
PolicyAgent
RemoteLog
all
#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:
Pointer to the name associated with the new module.
Pointer to the location where the identifier for the logging module is stored.
This function returns one of the following values of the am_status_t enumeration (defined in the <am_types.h> header file):
If a module of the same name already exists, the module identifier of the existing module is returned.
If the addition was successful.
If name or id_ptr is NULL.
If unable to initialize the logging framework.
If unable to allocate memory for the new module.
If any other error is detected.