-
Notifications
You must be signed in to change notification settings - Fork 1.4k
NLog Install
Rolf Kristensen edited this page Aug 8, 2026
·
13 revisions
- ℹ️ For .NET Core Console. Use: Getting started with .NET Core
- ℹ️ For ASP.NET Core. Use: Getting started with ASP.NET Core
Standard install
- Install the latest NLog from NuGet.
- Setup initial
NLog.configxml-file- Example NLog.config can be downloaded and just added to your main application project.
- Set "Copy To Output Directory" to "Copy if newer" for the
NLog.config.
That's it, you can now compile and run your application and it will be able to use NLog.
Next step, see Tutorial
If something is not working as expected then check here:
- Troubleshooting Guide - See available NLog Targets and Layouts: https://nlog-project.org/config
- Getting started
- How to use structured logging
- Troubleshooting
- FAQ
- Articles about NLog
-
All targets, layouts and layout renderers
Popular: - Using NLog with NLog.config
- Using NLog with appsettings.json