LoggingPolicy Constructor |
Namespace: CMS.CoreAssembly: CMS.Core (in CMS.Core.dll) Version: 13.0.131
Syntax 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