PruneLogs

Purpose

This command removes HomeSeer log files older than the given number of days.  If HomeSeer is not configured to automatically prune log files, this command can be used when manual pruning is desired.  

Parameters

Parameter: days
Type: integer (.NET Short)
Description: The number of days of log files that you wish to keep.

Returns

Parameter: number removed
Type: integer (.NET Short)
Description: The number of log files that were removed.

Example

Sub Main()

Dim i

i = hs.PruneLogs(20)
hs.WriteLog "Log Maint", CStr(i) & " files were removed to prune the log files back to 20 days."

End Sub