To log a system or private event in a file use the CA_Log_Event() subroutine, which allows you to write events to the same files as the LogEvent state table action. For example:
#define STR_LEN 127 int RC; int event; chart event_parm[STR_LEN+1]; /* Log current status */ sprintf(event_parm, “Event %d”, event); RC = CA_Log_Event(NULL, event_parm);