Log Files
The Core Script Library allows the generation of log files during it's operation via the WriteLog function. The log files are useful when trying to determine why a particular Script might have failed.
The log files are created on the M-Files server in the following location: C:\ProgramData\Pentagon DOCS\Server Logs\<Vault Name> <Vault GUID>
Each vault with the Core Script Library installed will have its own Server Logs sub folder based on the display name of the vault and it's globally unique identifier (GUID).
Automatic Removal of Log Files
Because the creation of log files can be based on an activity or transaction, the number of log files can quickly accumulate. The Core Script library will automatically remove log files older than 24 hours.
This setting can be increased or decreased by changing the following registry entry:
Registry Key |
HKEY_LOCAL_MACHINE\SOFTWARE\PentagonDOCS\Server |
Value Name |
DeleteLogFilesAfterHours |
Type |
REG_DWORD |
Default |
0x00000018 (24) 24 Hours |
Changing of this value does not require the vault to be restarted.