Tech Tip: How to stop recording Diagnostic log
PRODUCT: 4D | VERSION: 20 | PLATFORM: Mac & Win
Published On: May 2, 2025
With the command SET DATABASE PARAMETER you can enable different types of logs depending on the need. Diagnostic logs are useful when crashes or issues with the network layer are encountered.
While logs are very helpful to debug issues in your 4D application, forgetting to turn them off might consume more storage than intended.
To avoid any storage issues, please make sure to stop the logs when finished.
Here are two ways to stop recording diagnostic logs:
- Create a project method and add the following line:
SET DATABASE PARAMETER(Diagnostic log recording; 0)
Make sure to check the "Execute on Server" checkbox in the method properties. - Stopping your 4D Server will also automatically stop the recording of the diagnostic log.