Sun OpenSSO Enterprise 8.0 C API Reference for Application and Web Policy Agent Developers

am_log_log_record()

Writes the given log record to the specified logging module.

Syntax

#include "am_log.h"
AM_EXPORT am_status_t
am_log_log_record(am_log_record_t record,
                  const char *log_name,
                  const char *logged_by_token_id);

Parameters

This function takes the following parameters:

record

The log record pointer.

log_name

Pointer to the name of the logging module to which the log record will be written.

logged_by_token_id

Pointer to a valid SSOTokenID identifying the user to whom the log record applies.


Note –

This is required to access the Logging Service on OpenSSO Enterprise.


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 log record is written.

AM_*

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