Category:General
Last Updated:2011-08-11
 
Log File Mangement
You may schedule log file cleanup in your automated sync batch. The primary shell.exe program includes an option to clean-up old log files. By adding cleanlogs to your automated batch script, your automated process will keep your logs in check by deleting all but the desired recent logs.
Command Line cleanup
Execute the following command:
shell --cleanlogs [--days x] [Connection Name]
By default, CleanLogs runs against ALL connections and 30 days worth of logs will be saved. The rest will be deleted.
Optional parameters:
--days
Default is to keep 30 days worth of logs. You may use the --days parameter to increase or decrease the number of days worth of logs to keep.
Connection Name
Default, if you do not specify a connection name, will clean ALL connections logs. Specify a connection name to run clean logs against an individual connection.
You may add the Shell -cleanlogs command to your automated script to regularly run and keep the number of log files limited as desired.
Further command line cleanup usage Examples:
Delete logs from one specific Connection within a FOLDER:
shell --cleanlogs --days 60 "folderX\YourConnectionNameY"
Delete logs from ALL Connections within a FOLDER:
for /D %%D in (..\connections\FolderA\*.) DO ..\Programs\shell.exe --cleanlogs -days 60 "%%D"
To Delete Log Files Manually
Within the SimpleSync Admin tool, you may right click a log to delete it. Within the SimpleSync Admin tool, you may right click a connection and select ‘Clear Logs’ to delete all logs for that connection. From File Explorer, logs may be deleted. Log files are located in \UnitySync\connections\YourConnectionName\log