Пример #1
0
        internal WebLogger(string name, Func <string, LogLevel, bool> filter, IExternalScopeProvider scopeProvider, WebLoggerProcessor loggerProcessor)
        {
            if (name == null)
            {
                throw new ArgumentNullException(nameof(name));
            }

            Name            = name;
            Filter          = filter ?? ((category, logLevel) => true);
            ScopeProvider   = scopeProvider;
            _queueProcessor = loggerProcessor;
        }
Пример #2
0
 public WebLoggerProvider(WebLoggerProcessor loggerProcessor)
 {
     _messageQueue = loggerProcessor;
 }