Sun Java System Access Manager 7 2005Q4 C API Reference

am_log_init()

Initializes logging.

This must be called before using any am_log_* interfaces.

If any SSO, authentication, or policy initialization functions, am_sso_init() , am_auth_init(), or am_policy_init(), is called, then am_log_init() does not need to be called separately. Any of those functions will call am_log_init() internally with the same properties parameter that was used to initialize SSO, authentication, or policy.

See the agents documentation on parameters related to logging that can be used to initialize log.

Syntax

#include "am_log.h"
AM_EXPORT am_status_t
am_log_init(const am_properties_t log_init_params);

Parameters

This function takes the following parameters:

log_init_params

Properties to initialize the log module with.

Returns

This function returns am_status_t with one of the following values:

AM_SUCCESS

If log initialization is successful.

AM_*

If any error occurs, the type of error indicated by the status value.