KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Maintenance log file names with timestamps
PRODUCT: 4D | VERSION: 15 R3 | PLATFORM: Mac & Win
Published On: March 7, 2016

In 4D versions prior to v15 R3 log file names were not timestamped. Each time a new maintenance operation was started, the previous log file (if any) was overwritten by the new one.

Starting with 4D v15 R3, any log file generated during a maintenance operation through the MSC or the 4D Server administration window has a timestamped name. For example, the log file generated during a "Verify" operation would now be named:

Invoices_Verify_log_2016-02-18 17-50-13.xml

Any of the following operations from MSC or the 4D Server administration window Maintenance page are affected.
  • "Verify"
  • "Repair"
  • "Compact"
The Open log file button in the MSC window or the View Report button in the 4D Server Maintenance page, will present the most recent file. Prior log files can be viewed using a text editor or XML parser.

Since log file names are now unique, the "Logs" folder are no longer purged automatically. It is the responsibility of the database administrator to delete the oldest log files whenever necessary, both in 4D and in 4D Server.

When using the maintenance language commands (Compact data file, VERIFY DATA FILE and VERIFY CURRENT DATA FILE) this new feature, but it needs to be enabled using a new option constant: Timestamp log file name. Otherwise the log file will be produced without the timestamped name.