OpenEdge 10.1B introduced a new log entry type named '
4gltrans' which allows tracking when a transaction BEGINS, ENDS or is UNDONE. This can be used like any other log entry type that is associated with the
-clientlog startup parameter or through the
LOG-MANAGER system handle. Below is an example of implementing the
4gltrans log entry type both on the command-line (at startup) and through the
LOG-MANAGER session handle:
Client Startup Parameters:
-clientlog <logfilename> -logentrytypes 4gltrans -logginglevel <n>
LOG-MANAGER SYSTEM HANDLE:
LOG-MANAGER:LOGFILE-NAME = "<logfilename>".
LOG-MANAGER:LOG-ENTRY-TYPES = "4gltrans".
LOG-MANAGER:LOGGING-LEVEL = <int>.
Logging can be recorded at two levels:
- Level 2 - Logs when a transaction BEGINS and ENDS or when a transaction is UNDONE
- Level 3 - Logs when a transaction OR subtransaction BEGINS, ENDS or is UNDONE
The logged data for these events is similar to the following:
BEGIN TRANS
BEGIN SUB-TRANS
UNDO SUB-TRANS
END TRANS