public VerifyNoErrorsScope(ILoggerFactory loggerFactory = null, IDisposable wrappedDisposable = null, Func <WriteContext, bool> expectedErrorsFilter = null)
        {
            _wrappedDisposable    = wrappedDisposable;
            _expectedErrorsFilter = expectedErrorsFilter;
            _sink = new LogSinkProvider();

            LoggerFactory = loggerFactory ?? new LoggerFactory();
            LoggerFactory.AddProvider(_sink);
        }
Beispiel #2
0
 public LogSinkLogger(string categoryName, LogSinkProvider logSinkProvider)
 {
     _categoryName    = categoryName;
     _logSinkProvider = logSinkProvider;
 }