1 write to LogLevel
InMemory.FunctionalTests (1)
src\Servers\Kestrel\shared\test\TestApplicationErrorLogger.cs (1)
99LogLevel = logLevel,
26 references to LogLevel
InMemory.FunctionalTests (26)
Http2\Http2ConnectionTests.cs (3)
5306Assert.All(LogMessages, w => Assert.InRange(w.LogLevel, LogLevel.Trace, LogLevel.Debug)); 5326var logMessage = LogMessages.Single(m => m.LogLevel >= LogLevel.Information); 5328Assert.Equal(LogLevel.Warning, logMessage.LogLevel);
Http2\Http2StreamTests.cs (1)
3111Assert.Contains(LogMessages, m => (m.Exception?.Message.Contains("App Faulted") ?? false) && m.LogLevel == LogLevel.Error);
HttpProtocolSelectionTests.cs (1)
94Assert.Single(LogMessages, message => message.LogLevel == LogLevel.Error
RequestTests.cs (1)
1894Assert.DoesNotContain(LogMessages, m => m.LogLevel >= LogLevel.Warning);
ResponseDrainingTests.cs (1)
76Assert.Single(LogMessages, w => w.EventId.Id == 28 && w.LogLevel <= LogLevel.Debug);
ResponseTests.cs (17)
982var logMessage = Assert.Single(LogMessages, message => message.LogLevel == LogLevel.Error); 1021var logMessage = Assert.Single(LogMessages, message => message.LogLevel == LogLevel.Error); 1061var logMessage = Assert.Single(LogMessages, message => message.LogLevel == LogLevel.Error); 1096var logMessage = Assert.Single(LogMessages, message => message.LogLevel == LogLevel.Error); 1294var error = LogMessages.Where(message => message.LogLevel == LogLevel.Error); 1332Assert.DoesNotContain(LogMessages, message => message.LogLevel == LogLevel.Error); 1368Assert.DoesNotContain(LogMessages, message => message.LogLevel == LogLevel.Error); 1404Assert.DoesNotContain(LogMessages, message => message.LogLevel == LogLevel.Error); 2028Assert.Contains(LogMessages, w => w.EventId.Id == 17 && w.LogLevel <= LogLevel.Debug && w.Exception is BadHttpRequestException 2082if (message.EventId.Id == 17 && message.LogLevel <= LogLevel.Debug && message.Exception is BadHttpRequestException 2145Assert.Contains(LogMessages, w => w.EventId.Id == 17 && w.LogLevel <= LogLevel.Debug && w.Exception is BadHttpRequestException 2464Assert.Equal(2, LogMessages.Where(message => message.LogLevel == LogLevel.Error).Count()); 2524Assert.Equal(2, LogMessages.Where(message => message.LogLevel == LogLevel.Error).Count()); 2664Assert.Equal(2, LogMessages.Where(message => message.LogLevel == LogLevel.Error).Count()); 2711Assert.Single(LogMessages, message => message.LogLevel == LogLevel.Error); 2756Assert.Single(LogMessages, message => message.LogLevel == LogLevel.Error); 2789Assert.DoesNotContain(LogMessages, message => message.LogLevel == LogLevel.Error);
src\Servers\Kestrel\shared\test\TestApplicationErrorLogger.cs (2)
33public int TotalErrorsLogged => Messages.Count(message => message.LogLevel == LogLevel.Error); 35public int CriticalErrorsLogged => Messages.Count(message => message.LogLevel == LogLevel.Critical);