Sun Java System Access Manager 7 2005Q4 C API Reference

am_log_record_create()

Creates a log record and initializes it with the given log level and message.

Syntax

#include "am_log.h"
 AM_EXPORT am_status_t am_log_record_create
                   (am_log_record_t *record_ptr, am_log_record_log_level_t log_level,
                    const char *message);

Parameters

This function takes the following parameters:

record

Opaque handle to the log record.

log_name

The name of the log module to log the log record to

logged_by_token_id

A valid SSO token ID required to access the logging service on Access Manager.

Returns

This function returns am_status_t with one of the following values:

AM_SUCCESS

If the key and value was successfully added to the given log record.

AM_*

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