So, I was having a really hard time getting this working.
I couldn’t get the configuration of the logging adapter to work as per the documentation, I kept getting errors when trying to declare the LogManager.Adapter.
I ended up moving my config into the web.config file and still had problems getting the project to run.
In the end, the problem was the installation of the nuget package.
I uninstalled Common.Logging.NLog and installed Common.Logging.NLog20
This seems to be a known dependency issue, people can read more about it here;
- https://github.com/net-commons/common-logging/issues/23
- http://stackoverflow.com/questions/22223486/support-for-nlog-2-1
You should probably change the documentation reference for the Install-Package command.
Thanks for your help!