SPSite.TrimAuditLog Property
SharePoint 2010
Gets or sets a value that specifies whether to remove excess from the audit log periodically.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Available in SharePoint Online
The retention period for events in the audit log is specified by the value of the AuditLogTrimmingRetention property.