Product Documentation

FairCom ISAM for C

Previous Topic

Next Topic

System Event Log evclass and event Codes

The evclass codes defined in ctport.h are listed below. It is anticipated that additional evclass codes will be defined, with appropriate event codes, as additional types of FairCom Server operations are added to the system log facility. Developers can define evclass codes with values of 0x402 and above without interfering with future FairCom-defined codes. The developer of the calling application assigns the developer-defined event codes.

Symbolic Constant

Value

Explanation

ctSYSLOGuser

0x001

User logon information

ctSYSLOGddmp

0x002

Dynamic dump information

ctSYSLOGstat

0x003

CTSTATUS.FCS entries

ctSYSLOGdelfil

0x005

File delete information

ctSYSLOGsql

0x008

SQL info

ctSYSLOGpurge

0x400

Special purge request

ctSYSLOGapi

0x401

Beginning of vendor defined event classes

The user logon info event codes are below. On the ADDUSER, CHGUSER, and DELUSER entries, the variable buffer portion of the entry contains the user ID and a brief description of the type of activity. The actual details of the user profile information are not in the log.

Symbolic Constant

Value

Explanation

ctSYSLOGuserLOGON

0x001

Successful logon

ctSYSLOGuserLOGOFF

0x002

Logoff

ctSYSLOGuserLOGFAIL

0x003

Failed logon

ctSYSLOGuserADDUSER

0x004

Add new user

ctSYSLOGuserCHGUSER

0x005

Modify user profile

ctSYSLOGuserDELUSER

0x006

Delete user

ctSYSLOGuserSQLLOGON

0x007

Successful SQL logon

ctSYSLOGuserSQLLOGOFF

0x008

SQL logoff

ctSYSLOGuserSQLLOGFAIL

0x009

failed SQL logon

The dynamic dump event codes are below. The TRAN, CLEAN, and DIRTY log entries contain the name of the file dumped in the vfld portion of the log record.

Symbolic Constant

Value

Explanation

ctSYSLOGddmpBEGIN

0x001

Begin dynamic dump

ctSYSLOGddmpTRAN

0x002

Transaction controlled file

ctSYSLOGddmpCLEAN

0x003

Clean non-transaction file

ctSYSLOGddmpDIRTY

0x004

Dirty non-transaction file

ctSYSLOGddmpEND

0x010

End dynamic dump

There are no event codes for CTSTATUS.FCS entries. They are all event zero. The file delete event codes are:

Symbolic Constant

Value
(LONG)

Explanation and variable contents

ctSYSLOGdelfRSTR

0x0001

Restore of deleted file. (12-byte File ID, Original Name, Copy Name)

ctSYSLOGdelfTRAN

0x0002

Transaction-dependent delete. (12-byte File ID, Original Name, Copy Name)

ctSYSLOGdelfNOTRAN

0x0003

Non-transaction-dependent delete. (12-byte File ID, Original Name)

Restore point event codes

Symbolic Constant

Value
(LONG)

Explanation and variable contents

ctSYSLOGrstpntCREATE

0x001

Create restore point

ctSYSLOGrstpntRECOVERY

0x002

Recovery results

ctSYSLOGrstpntTRANBAK

0x003

TRANBAK results

ctSYSLOGrstpntNOKEEP

0x004

Create RP but no keep

SQL statement log event codes

Symbolic Constant

Value
(LONG)

Explanation and variable contents

ctSYSLOGsqlSTMT

0x0001

SQL Statement

TOCIndex