-
Notifications
You must be signed in to change notification settings - Fork 1.4k
NLog Install
Rolf Kristensen edited this page May 25, 2024
·
10 revisions
ASP.NET Core users should follow Getting started with ASP.NET Core first.
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