Пример #1
0
 private static void EventLogEntryMapping(log4net.Appender.EventLogAppender appender, log4net.Core.Level log4netLevel, EventLogEntryType eventLogLevel)
 {
     var mapping = new log4net.Appender.EventLogAppender.Level2EventLogEntryType
     {
         EventLogEntryType = eventLogLevel,
         Level = log4netLevel
     };
     appender.AddMapping(mapping);
 }