Beispiel #1
0
 /// <summary>
 /// Full constructor.
 /// </summary>
 /// <param name="severitySwitch">An <see cref="ILogEventSeveritySwitch"/> implementation used to provide and check the minimum allowed event severity.</param>
 /// <exception cref="System.ArgumentNullException">Thrown if <paramref name="severitySwitch"/> is null.</exception>
 public MinimumLogSeverityFilter(ILogEventSeveritySwitch severitySwitch)
 {
     _SeveritySwitch = severitySwitch;
 }
Beispiel #2
0
 /// <summary>
 /// Full constructor.
 /// </summary>
 /// <param name="severitySwitch">An <see cref="ILogEventSeveritySwitch"/> implementation used to filter events based on their severity.</param>
 /// <param name="allowedEventTypes">Null to avoid filtering on event type, or else an enumerable set of event types that will pass the filter.</param>
 public StandardFirstChanceFilter(ILogEventSeveritySwitch severitySwitch, IEnumerable <LogEventType> allowedEventTypes)
 {
     _SeveritySwitch    = severitySwitch;
     _AllowedEventTypes = allowedEventTypes?.ToArray();
 }