Try OpenEdge Now
skip to main content
Debugging and Troubleshooting
Troubleshooting Resources : Logging in OpenEdge : Log files : Clearing the log file
 
Clearing the log file
You can clear messages from the current log file and leave the log file open for writing using the following methods:
*The Clear Log (-clearlog) startup parameter
*The CLEAR-LOG( ) method on the LOG-MANAGER system handle
Note: This method is valid only for interactive or batch clients.
*The srvrLogAppend and related properties in the ubroker.properties file with OpenEdge Management or OpenEdge Explorer
The following table shows how to clear the log file.
Table 27. Clearing the log file
Method
General syntax
Example
Startup parameter
-clearlog
-clientlog mylog.log -clearlog
LOG-MANAGER system handle
LOG-MANAGER:CLEAR-LOG( )
LOG-MANAGER:CLEAR-LOG( )
OpenEdge Management or OpenEdge Explorer, or ubroker.properties files
logAppend = 0|1
srvrLogAppendFile=0|1
brkrLogAppend= 0|1
srvrLogAppendFile=0
For a detailed description of the Clear Log (-clearlog) startup parameter, see OpenEdge Deployment: Startup Command and Parameter Reference.
For a detailed description of the LOG-MANAGER system handle, see OpenEdge Development: ABL Reference.