Enabling Logging with NLog

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;

You should probably change the documentation reference for the Install-Package command.

Thanks for your help!