❔ Why Serilog doesn't loggin into a MSSQL Database
Hi dear friends,
I'm working on a solution that contains 5 projects, (
Recently I tried to integrate the
I created the following entity that represents a
in the
And I configured in the
And to log from
With all these and no logs stored in the DB, please from your experience how do I can solve this issue ?
I'm working on a solution that contains 5 projects, (
Core, IdentityCore, EFCore, CQRSCore and WEB), the WEB project is an ASP.NET Core 7 API project.Recently I tried to integrate the
Serilog logger in the project.I created the following entity that represents a
Log :AppUser is a class that Inherits from IdentityUser.in the
AppDbContext I add the Log as a DbSet<Log> Logs.And I configured in the
Serilog in the Program.cs of the web project like this :And to log from
Controllers I use like the following example :With all these and no logs stored in the DB, please from your experience how do I can solve this issue ?