The AUDITFILE emitter user exit is invoked to report on emitter status changes. It is enabled by specifying its name to the AUDITFILE emitter via the AuditfileExit property, see AUDITFILE Emitter Properties. The following status changes are reported:
The AUDITFILE emitter loads the DLL or shared object named by the AuditfileExit property and invokes the AUDITFILE_EMITTER_EXIT entry point within it whenever an emitter status change occurs.
typedef cobrtncode_t (*PFI_AUDITFILE_EMITTER_EXIT)(cobuns32_t function, cobuns8_t *emitter_name, ...);
0 | AUDITFILE emitter initialising. The exit may change the emitter's properties during its invocation |
1 | AUDITFILE emitter deinitialising. The exit would typically release any resources it has acquired during its previous invocations |
2 | A new audit file is being made active |
3 | The active audit file is now full |
4 | There are no audit files available for outputting events into |
Comments:
Please note that the user exit should not be written in COBOL.
See auditfile_exit.c for an example.