public ClsLoggerProvider(ClsWriter writer, IOptionsMonitor <LoggingOptions> options) { _writer = writer; _loggingOptions = options.CurrentValue; TurnLoggerLevels(); options.OnChange(newValue => { _loggingOptions = newValue; TurnLoggerLevels(); }); }
public ClsLogger(string categoryName, ClsWriter writer, Func <LogLevel, bool> checkEnableFunc) { _categoryName = categoryName; _writer = writer; _checkEnableFunc = checkEnableFunc; }