Project came about since I wanted to use Common.Logging with the latest version of NLog and I'm under the impression that the NLog adapter project is a little dead: https://www.nuget.org/packages/Common.Logging.NLog/. So I decided to roll my own which will use the latest versions of Common.Logging and NLog.
Usage
-
Download NuGet package into your solution: https://www.nuget.org/packages/JVW.Logging.CommonLoggingNLogAdapter/ or Install-Package JVW.Logging.CommonLoggingNLogAdapter.
-
Update your web/app.config with the values below:
Don't forget to add references to Common.Logging in your other projects and log by using:
private static ILog log = Common.Logging.LogManager.GetCurrentClassLogger();
in your classes.
Links:
- Common.Logging: http://netcommon.sourceforge.net/
- NLog: http://nlog-project.org/
- The project that I'm trying to update: https://www.nuget.org/packages/Common.Logging.NLog/