Sun Java System Access Manager 7 2005Q4 C API Reference

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

Name of the file in which to record logging messages.

Returns

This function returns am_status_twith one of the following values:

AM_SUCCESS

If the logging file could be set

AM_NO_MEMORY

If unable to allocate memory for internal data structures

AM_FAILURE

If any other error is detected

Details

If the specified name is NULL or empty, then logging messages will be sent to the stderr stream.