HP-UX SNAplus2 NOF Programmer's Guide

NOF API Verbs (REGISTER_INDICATION_SINK to UNREGISTER_INDICATION_SINK)
SET_LOG_FILE
Chapter 51046
SET_LOG_FILE
This verb manages a file that SNAplus2 uses to record log messages. It
allows you to do the following:
Specify the file used to record log messages, and the backup file (to
which log information is copied).
Specify the maximum log file size (when the log file reaches this size,
SNAplus2 copies log information to the backup file and resets the log
file).
Copy the current contents of the log file to the backup file, and
optionally delete the current file.
You can record audit log and error log messages in separate files, or
record both types of messages in the same file.
VCB Structure
typedef struct set_log_file
{
AP_UINT16 opcode; /* verb operation code */
unsigned char reserv2; /* reserved */
unsigned char format; /* reserved */
AP_UINT16 primary_rc; /* primary return code */
AP_UINT32 secondary_rc; /* secondary return code */
unsigned char log_file_type; /* type of log file */
unsigned char action; /* reset and/or backup existing */
unsigned char file_name[81]; /* file name */
unsigned char backup_file_name[81]; /* backup file */
AP_UINT32 file_size; /* log file size */
} SET_LOG_FILE;
Supplied Parameters
The application supplies the following parameters:
opcode
AP_SET_LOG_FILE
log_file_type
The type of log file being managed. Possible values are: