SPWebApplication.ChangeLogRetentionPeriod property
SharePoint 2013
Gets or sets the number of days to retain change logs.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Property value
Type: System.TimeSpanA TimeSpan structure that specifies the retention period. Only the Days property is significant.