Sun Java System Access Manager 7 2005Q4 C API Reference

am_log_set_remote_info()

Sets information about Access Manager log service for the remote log module.

This must be called before calling am_log_message() with AM_LOG_REMOTE_MODULE as the log module.

Otherwise use am_log_log() with a log record and SSO token ID to log to Access Manager.

Syntax

#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);

Parameters

This function takes the following parameters:

rem_log_url

URL of the Access Manager log service.

sso_token_id

The logged by SSO Token ID.

rem_log_name

The log name on Access Manager.

log_props

Properties to initialize the remote log service with.

Returns

This function returns am_status_t with one of the following values:

AM_SUCCESS

If the function call is successful.

AM_*

If an error occurs.