NLog.EntityFramework provides a way to use the otherwise wonderful NLog logging framework with an Entity Framework connection string.
This library is the result of a fruitless search within the stock NLog library for a way to log to a database using an Entity Framework connection string. It is a full rewrite of NLog’s DatabaseTarget
rather than an extension of that class because it is (for whatever reason) declared as sealed
.
NLog.EntityFramework is available via NuGet. To install it, run the following command in the Package Manager Console:
PM> Install-Package NLog.EntityFramework
Please see the wiki for usage and an example.
Like NLog itself, NLog.EntityFramework is open source software, licensed under the terms of the BSD license. It also uses code from NLog written by Jaroslaw Kowalski, the author of NLog.