KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: LOG FILE TO JSON file names
PRODUCT: 4D | VERSION: 15.x | PLATFORM: Mac & Win
Published On: September 8, 2017

The LOG FILE TO JSON command creates .json files of all operations recorded in the database's log. At the destination folder multiple .json files can be created based on the maximum set size of the JSON files passed in the second optional parameter (10 MB) by default.
If multiple .json files are generated the naming structure of the files are as follows:

    JournalExport.json
    JournalExport2.json
    JournalExport3.json
    ...
    JournalExport9.json
    JournalExport10.json
    JournalExport11.json
    ...

As shown the first file does not contain a number and the subsequent files contain the number right at the end with no extra characters.

NOTE:
When handling the .json files by code be careful of lexicographic sorting which will sort the files as:
    JournalExport.json
    JournalExport10.json
    JournalExport11.json
    ...
    JournalExport2.json
    JournalExport20.json
    ...
    JournalExport3.json
    ...