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: 13.0.131
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));
Service.Resolve<IEventLogService>().LogException("Data", "UPDATE", ex, policy);
See Also