Previous Next

CLEAR-LOG( ) method
Clears all messages existing in the current client log file and leaves the file open for writing.
Note:
WebSpeed agents and AppServers silently ignore the Client Logging (-clientlog) startup parameter. The broker handles the clearing of the WebSpeed and AppServer server logs, through the srvrLogAppend property in the ubroker.properties file.
Return type:
Applies to:
 
Syntax 
CLEAR-LOG( )
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 either the Log Threshold (-logthreshold) startup parameter or the srvrLogThreshold property in the ubroker.properties file, 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.

Previous Next
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates.