public void Emit(LogEvent logEvent) { // This is a lagging indicator, but the network bandwidth usage benefits // are worth the ambiguity. if (_shipper.IsIncluded(logEvent)) { _sink.Emit(logEvent); } }
public void Emit(LogEvent logEvent) { // This is a lagging indicator, but the network bandwidth usage benefits // are worth the ambiguity. var minimumAcceptedLevel = _shipper.MinimumAcceptedLevel; if (minimumAcceptedLevel == null || (int)minimumAcceptedLevel <= (int)logEvent.Level) { _sink.Emit(logEvent); } }
/// <summary> /// Emit the provided log event to the sink. /// </summary> public void Emit(LogEvent logEvent) { sink.Emit(logEvent); }
public void Emit(LogEvent logEvent) { _sink.Emit(logEvent); _shipper.Emit(); }