How to log unhandeld exceptions with Serilog in a ASP.Net MVC Project? I am using Serilog in a ASP.Net Project with the following code in my Program.cs: