Click or drag to resize
LoggingPolicy Constructor
Creates new logging policy of type OncePerPeriod.

Namespace: CMS.Core
Assembly: CMS.Core (in CMS.Core.dll) Version: 12.0.0
Syntax
C#
public LoggingPolicy(
	TimeSpan period
)

Parameters

period
Type: SystemTimeSpan
Period value.
Remarks
You can use ONLY_ONCE constant instead of Zero for events that should be logged only once without period limit.
Examples
var policy = new LoggingPolicy(TimeSpan.FromMinutes(15));
CoreServices.EventLog.LogException("Data", "UPDATE", ex, policy);
See Also