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

            Name            = name;
            Filter          = filter ?? ((category, logLevel) => true);
            ScopeProvider   = scopeProvider;
            _queueProcessor = loggerProcessor;
        }
Пример #2
0
 public NetLoggerProvider(NetLoggerOption option, Func <string, LogLevel, bool> filter, bool includeScopes)
 {
     _filter        = filter;
     _includeScopes = includeScopes;
     _messageQueue  = new NetLoggerProcessor(option);
 }