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