I'm following the instructions here https://github.com/serilog/serilog-aspnetcore, but in the end no MVC events are getting logged, even though the minimum level was set to Verbose. Any ideas what am I doing wrong?
I'm using ASP.NET Core 2 with the following settings:
public static int Main(string[] args)
{
Log.Logger = new LoggerConfiguration()
.MinimumLevel.Verbose()
.MinimumLevel.Override("Microsoft", LogEventLevel.Verbose)
.Enrich.FromLogContext()
.WriteTo.Console()
.CreateLogger();
// here goes the rest of init
}
public static IWebHost BuildWebHost(string[] args) =>
WebHost.CreateDefaultBuilder(args)
.UseStartup<Startup>()
.UseSerilog()
.Build();
