Initializes the remote log service.
This must be called before am_log_log() with AM_LOG_REMOTE_MODULE as the log module. Initialization is done only once. Subsequently, only remote logging calls are done.
#include "am_log.h" AM_EXPORT am_status_t am_log_set_remote_info(const char *rem_log_url, const char *sso_token_id, const char *rem_log_name, const am_properties_t log_props);
This function takes the following parameters:
Pointer to the URL of the OpenSSO Enterprise Logging Service being used for the remote logging.
Pointer to a valid SSOTokenID identifying the user to whom the log record applies.
Pointer to the logging module (file) to which log records are written.
Pointer to the properties that contain the information to initialize the OpenSSO Enterprise Logging Service.
log_props is expected to have the information formatted as a properties map in key/value pairs. Delete the am_properties_t pointer only when finished with the SDK. See am_properties_t for more information.
This function returns one of the values of the am_status_t enumeration (defined in the <am_types.h> header file).