SPDiagnosticsService.DaysToKeepLogs property

Gets or sets the number of days to store log files.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public int DaysToKeepLogs { get; set; }

Property value

Type: System.Int32
The number of days.
Show: