Skip to content

Commit 28fcb9f

Browse files
Aaron WittIvan Gavryliuk
authored andcommitted
Changed the mapping for the Fatal SeriLog event level to map to the Critical Appliation Insights SeverityLevel
1 parent f412d73 commit 28fcb9f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Serilog.Sinks.ApplicationInsights/Sinks/ApplicationInsights/LogEventLevelExtensions.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,9 @@ public static class LogEventLevelExtensions
3939
case LogEventLevel.Warning:
4040
return SeverityLevel.Warning;
4141
case LogEventLevel.Error:
42-
case LogEventLevel.Fatal:
4342
return SeverityLevel.Error;
43+
case LogEventLevel.Fatal:
44+
return SeverityLevel.Critical;
4445
}
4546

4647
return null;

0 commit comments

Comments
 (0)