CLEAR-LOG( ) method
- Last Updated: January 18, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
Clears all messages existing in the current client log file and leaves the file open for writing.
Return type: LOGICAL
Applies to: DSLOG-MANAGER system handle, LOG-MANAGER system handle
Syntax
|
If the CLEAR-LOG( ) method successfully clears the open log file, it returns TRUE.
If the CLEAR-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 CLEAR-LOG( ) method returns FALSE and displays a warning message that the operation is not valid when there is no log file.
If you specified a log file threshold with the Log Threshold (-logthreshold) startup parameter, the CLEAR-LOG( ) method deletes
any existing log files that match the name of the LOGFILE-NAME attribute, the Client Logging
(-clientlog) startup parameter, or the DataServer Logging
(-dslog) startup parameter. The method then re-creates
and opens the first log file in the sequence and changes the LOGFILE-NAME attribute to reflect this.