When using SET DATABASE PARAMETER(34) to generate a Debug Log, the files created are placed in the Logs folder of the database. The files have the following format: 4DDebugLog_X.txt. X is a sequential number added to the file name starting with 1.
The following rules apply:
- When the file reaches 10MB in size, the file is closed and a new file is created with the next number in the sequence.
- If a file with the same name exists, it gets replaced immediately.
- When the application is relaunched, and SET DATABASE PARAMETER (34) is still recording, the file 4DDebugLog_1.txt (if it exists) gets rewritten immediately. If other files exists in the Logs folder (4DDebugLog_2.txt, 4DDebugLog_3.txt, etc.) they remain with the same Debug Log information of the previous session, unless they are required. In that case the file gets replaced.
To avoid confusion, before launching the application if Debug Log files exist in the Logs folder, copy them to another folder for further analysis.