NLog integrates with Visual Studio 2005 (including Visual C# and Visual Basic.NET Express Editions). Integration with Visual Studio.NET 2002 and 2003 is also supported, but not all features are available. Click on one of the following features for an example:
NLog supports Intellisense when editing XML configuration files (both App.config-style, and stand-alone).
All you need to do is add two namespace declarations to the
]]>
The other change necessary is turning
NLog Setup registers the appropriate AssemblyFolders entry in registry so that Visual Studio is able to locate the *.dll files and present them in Add Reference dialog. This is supported in all Visual Studio versions.
NLog comes with 3 sample configuration files that can be quickly added to you project through Add New Item dialog. They are:
Please note that you need to change "Copy To Output Directory" option on the NLog.config to "Copy Always" "New Item" templates are only supported with Visual Studio 2005 (including Express Editions).
NLog installs a Visual Studio 2005 Code Snippet called "
private static Logger logger = LogManager.GetCurrentClassLogger();