void eventRaisingAppender_LoggingEventAppended(object sender, LoggingEventEventArgs e)
 {
     if (eventCount_ < MaxRecursion && logger_ != null)
     {
         eventCount_++;
         string message = String.Format(CultureInfo.CurrentCulture, "Log event {0} from EventRaisingAppender", eventCount_);
         Console.WriteLine("Logging message: " + message);
         logger_.Log(typeof(RecursiveLoggingTest), Level.Warn, message, null);
     }
 }
Пример #2
0
 protected void OnLoggingEventAppended(LoggingEventEventArgs e)
 {
     LoggingEventAppended?.Invoke(this, e);
 }