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

am_log_set_log_file()

Sets the name of the file to use for logging.

Syntax

#include "am_log.h"
AM_EXPORT am_status_t
am_log_set_log_file(const char *name);

Parameters

This function takes the following parameter:

name

Pointer to the name of the file to which log records are recorded.


Note –

If NULL or empty, logging messages are sent to the stderr stream.


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 the logging file is successfully set.

AM_NO_MEMORY

If unable to allocate memory for internal data structures.

AM_FAILURE

If an error of any type occurs.