I'd like to log any Ilogger
data into database in Blazor Server
. So according to this video I created this repository.
When I run the project, the first page of the project is displayed for a while, but it closes suddenly. As far as I understand, the problem is from recording too much information in the database in the following section in a short time. Because when the following code is commented in log method, the problem is solved. How do I fix this problem?
_dbContext.SaveChanges();