iammukeshm/CleanArchitecture.WebApi

Serilog dont logging

NurdaKz opened this issue · 2 comments

After this line in Program.cs, nothing is logged

Log.CloseAndFlush();

Had the same issue, you need to move this line inside try catch block in Program.cs

  try
   {

 ///..... Other code
await host.RunAsync();


}


Had the same issue, you need to move this line inside try catch block in Program.cs

  try
   {

 ///..... Other code
await host.RunAsync();


}

thanks @alydemah this solved the issue