Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public LogSinkLogger(string categoryName, LogSinkProvider logSinkProvider)
 {
     _categoryName    = categoryName;
     _logSinkProvider = logSinkProvider;
 }