コード例 #1
0
        public VerifyLogScope(ILoggerFactory loggerFactory = null, IDisposable wrappedDisposable = null, Func <WriteContext, bool> expectedErrors = null)
        {
            _wrappedDisposable = wrappedDisposable;
            _expectedErrors    = expectedErrors;
            _sink = new LogSinkProvider();

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