Tech Tip: Diagnostic Log for 4D Server crash
PRODUCT: 4D | VERSION: 20 | PLATFORM: Mac & Win
Published On: May 29, 2025
Diagnostic logs record internal events of the application and outputs human-readable logs. This makes it ideal for debugging 4D applications that crash.
Here are some steps to configure this log on your 4D Server:
- In the database method "On Server Startup" and "On Startup" add the following line:
SET DATABASE PARAMETER(Diagnostic log recording; 1) |
- Define the diagnostic log level:
SET DATABASE PARAMETER(Diagnostic log level; Log trace) |
To stop the log recording, execute a project method with "Execute on Server" property enabled, containing the following line:
SET DATABASE PARAMETER(Diagnostic log recording; 0) |