You can stop writing messages to the current log file, and close the current log file by using the CLOSE-LOG( ) method on the LOG-MANAGER system handle.

Note: This method is only valid for interactive or batch clients. For the PAS for OpenEdge agent log, the log file closes when the server shuts down.

The following table shows how to close the log file.

Table 1. Closing the log file
Method General syntax Example
LOG-MANAGER system handle
LOG-MANAGER:CLOSE-LOG( )
LOG-MANAGER:CLOSE-LOG( )

For a detailed description of the LOG-MANAGER system handle, see ABL Reference. This method is not available to the server context of DataServers via the DSLOG-MANAGER system handle due to the multi-user nature of the open log file for DataServers