CLOSE-LOG( ) method
- Last Updated: February 11, 2026
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
Closes the current log file, which stops an interactive or batch client from writing messages to the log file.
The CLOSE-LOG( ) method writes a message to the log file indicating that the client intentionally closed the log file, so that the user knows why there are no more messages in the log file.
Return type: LOGICAL
Applies to: LOG-MANAGER system handle
Syntax
|
If the CLOSE-LOG( ) method successfully closes the open log file, it returns TRUE.
If the CLOSE-LOG( ) method fails, it returns FALSE and displays a warning message indicating the reason for the failure.
If there is no client log file, the CLOSE-LOG( ) method returns TRUE and does not display a warning message.
Note: This method is valid only for interactive and batch clients.
Application servers write a message to the server log file indicating that it is invalid to
use the CLOSE-LOG( ) method to close an application server log file. In this case, the
method returns FALSE. Unlike the other LOG-MANAGER methods, you cannot use this method with
the DSLOG-MANAGER system handle.