LoggingPolicy Constructor |
Namespace: CMS.CoreAssembly: CMS.Core (in CMS.Core.dll) Version: 12.0.0
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));
CoreServices.EventLog.LogException("Data", "UPDATE", ex, policy);
See Also