public VerifyNoErrorsScope(ILoggerFactory loggerFactory = null, IDisposable wrappedDisposable = null, Func <LogRecord, bool> expectedErrorsFilter = null) { _wrappedDisposable = wrappedDisposable; ExpectedErrorsFilter = expectedErrorsFilter; _sink = new LogSinkProvider(); LoggerFactory = loggerFactory ?? new LoggerFactory(); LoggerFactory.AddProvider(_sink); }
public LogSinkLogger(string categoryName, LogSinkProvider logSinkProvider, IExternalScopeProvider?scopeProvider) { _categoryName = categoryName; _logSinkProvider = logSinkProvider; _scopeProvider = scopeProvider; }