예제 #1
0
 public Log4netLog([NotNull] ILogger logger, [NotNull] Log4netLogSettings settings)
     : this(logger, IsTrivialLoggerName(logger.Name) ? null : new SourceContextValue(logger.Name), settings)
 {
 }
예제 #2
0
 private Log4netLog([NotNull] ILogger logger, SourceContextValue sourceContext, Log4netLogSettings settings)
 {
     this.logger        = logger ?? throw new ArgumentNullException(nameof(logger));
     this.sourceContext = sourceContext;
     this.settings      = settings ?? new Log4netLogSettings();
 }
예제 #3
0
 public Log4netLog([NotNull] log4net.ILog log, [NotNull] Log4netLogSettings settings)
     : this(log.Logger, settings)
 {
 }