CA_Log_Event()

Purpose

Log a system or private event.

Libraries

Blueworx Voice Response library (libvae.a)

Custom Server library (libca.a)

Syntax

#include "CA_header.h"
int CA_Log_Event(
 char *sys_event_name,
 char *priv_event_name
);

Description

This subroutine logs a specified system event in the Blueworx Voice Response event database or a specified private event in a user-defined file. For more details on logging events, see the LogEvent state table action description. For an example of how to use this subroutine, see Logging errors.

Note: Using this routine causes CA_Poll() to return if CA_Poll() is being used by another process registered using the same CA_Init() call.

Parameters

sys_event_name
Specifies the name of the system event.
priv_event_name
Specifies the name of the private event.

Return codes

0
Successful
-1
Unsuccessful (global error number CA_errno is set to indicate the error)

Error names

CA_INV_ADDR
CA_INV_REQUEST
CA_NOT_INIT
CA_TERMINATING

Related information

The LogEvent state table action.