Try OpenEdge Now
skip to main content
Startup Command and Parameter Reference
Startup Parameter Descriptions : Clear Log (-clearlog)
 

Clear Log (-clearlog)

Use Clear Log (-clearlog) to delete any file that matches the name of the specified client log file identified by the ClientLogging (-clientlog) parameter.
Operating system and syntax
UNIX / Windows
-clearlog
Use with
Maximum value
Minimum value
Single-user default
Multi-user default
Client Session
Note: This parameter is valid only for interactive or batch clients. WebSpeed agents and AppServers will silently ignore it.
In the following example, the client will delete the log file debug.log, if it exists, and then open debug.log as the client log file:
prowin32.exe -p myprog.p -clientlog debug.log -clearlog
In the following example, the client will delete all the log files matching the name debug.log; such as debug.000001.log through debug.000003.log. Then the client will open debug.000001.log as the client log file, as shown:
prowin32.exe -p myprog.p -clientlog debug.log -clearlog -logthreshold 1000000
WebSpeed agents and AppServers will silently ignore the ClientLogging (-clientlog) parameter. The broker handles the clearing of the WebSpeed and AppServer server logs, through the srvrLogAppend property in the ubroker.properties file.
For more detailed information about enabling logging, see OpenEdge Development: Debugging and Troubleshooting.