4 references to _disabledLevels
Microsoft.Extensions.Diagnostics.Testing (4)
Logging\FakeLogger.cs (4)
71
l.ToArray(), Category, !
_disabledLevels
.ContainsKey(logLevel), Collector.TimeProvider.GetUtcNow());
80
public void ControlLevel(LogLevel logLevel, bool enabled) => _ = enabled ?
_disabledLevels
.TryRemove(logLevel, out _) :
_disabledLevels
.TryAdd(logLevel, false);
87
public bool IsEnabled(LogLevel logLevel) => !
_disabledLevels
.ContainsKey(logLevel);