Beispiel #1
0
 public TraceLog(IEventFormatterAdapter formatter, IEventLevelConverter eventLevelConverter)
 {
     this.formatter           = formatter ?? throw new ArgumentNullException(nameof(formatter));
     this.eventLevelConverter = eventLevelConverter ?? throw new ArgumentNullException(nameof(eventLevelConverter));
 }
 public DotRasLoggingAdapter()
 {
     logger  = LogManager.GetLogger("App");
     adapter = new EventFormatterAdapter(new ConventionBasedEventFormatterFactory());
 }