Esempio n. 1
0
        internal JournalLogger(string name, IExternalScopeProvider scopeProvider, JournalLoggerOptions options)
        {
            if (name == null)
            {
                throw new ArgumentNullException(nameof(name));
            }

            Name          = name;
            ScopeProvider = scopeProvider;
            if (options.DropWhenBusy)
            {
                _additionalFlags |= LogFlags.DropWhenBusy;
            }
            _syslogIdentifier = options.SyslogIdentifier;
            _additionalFlags |= LogFlags.DontAppendSyslogIdentifier;
        }
Esempio n. 2
0
 public JournalLoggerProvider(IOptions <JournalLoggerOptions> options)
 {
     _options = options.Value;
 }