{"repo":"msmolka/ZNetCS.AspNetCore.Logging.EntityFrameworkCore","free":true,"listed":false,"github":"https://github.com/msmolka/ZNetCS.AspNetCore.Logging.EntityFrameworkCore","clone":"git clone https://github.com/msmolka/ZNetCS.AspNetCore.Logging.EntityFrameworkCore.git","description":"This is Entity Framework Core logger and logger provider. A small package to allow store logs in any data store using Entity Framework Core.","language":"C#","stars":35,"topics":["entityframeworkcore","logger","logging","entity-framework-core","asp-net-core","aspnetcore","aspnet-core"],"license":"MIT","category":"analytics","readme_excerpt":"ZNetCS.AspNetCore.Logging.EntityFrameworkCore This is Entity Framework Core logger and logger provider. A small package to allow store logs in any data store using Entity Framework Core. It was prepared to use in ASP NET Core application, but it does not contain any references that prevents to use it in plain .NET Core application. As from version 2.0.2 there is silent error handling on logger SaveChanges(). To avoid Db error having impact on application. Installing Install using the ZNetCS.AspNetCore.Logging.EntityFrameworkCore NuGet package Usage When you install the package, it should be added to your .csproj . Alternatively, you can add it directly by adding: .NET 6 In order to use the IP filtering middleware, you must configure the services in the Program.cs file. .NET 5 and Below Important Notes In most case scenario you would not like add all logs from application to database. A lot of of them is jut debug/trace ones. In that case is better use filter before add Logger . This will also prevent some StackOverflowException when using this logger to log EntityFrameworkCore logs. .NET 6 .NET 5 and Below It is also possible to setting filters inside appsettings.json file. This provider is using EntityFramework alias. This way is recommended because there is no need to care about proper provider definition. Then you need to setup your context to have access to log table e.g. There is also possibility to extend base Log class. Change MyDbContext to use new extended log model ","default_branch":null,"files":null,"tree":[],"storefront":"/r/msmolka","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/msmolka/ZNetCS.AspNetCore.Logging.EntityFrameworkCore/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}