Instructing OpenEdge to record an application event
- Last Updated: February 11, 2026
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
The basic method for generating an application event
is the AUDIT-CONTROL:LOG-AUDIT-EVENT( ) method, using
the following syntax:
Syntax
|
Invoking this method generates the audit event in any connected and audit-enabled database whose active audit policies also enable this event, identified by its event-id. The method returns a character string containing a universally unique identifier (UUID) that serves as a primary index for the generated audit event record. For more information on UUIDs, see the sections on managing identities in Application Security.
You can specify any integer value from 32000 or greater as the event-id. The remaining values can specify any character strings that you find helpful in describing this event. This information is designed to indicate, respectively, some context information for this instance of the event (event-context, which is an alternate index for querying the audit event record), any more detailed information about the event (event-detail), and any information about the application user associated with the auditing ID for the event (user-detail), which you might obtain from attributes of the client-principal object.
The following code fragment shows how you might code this method:
|
This example assembles a list of generated application events in order of occurrence by storing the generated UUID returned for each event in an array for later reference.