Home
Julian Verdurmen edited this page Apr 18, 2022
·
59 revisions
Pages 261
Home
- Getting started
- How to use structured logging
- Troubleshooting
- FAQ
Configuration
-
All targets, layouts and layout renderers
Popular: - Using NLog with NLog.config
- Using NLog with appsettings.json
Programmatic Configuration
Advanced
- Add LogEvent Context details
- Filtering log messages
- NLog properties with Microsoft Extension Logging
- NLog GetCurrentClassLogger and Microsoft ILogger
- Using Time Sources
- Installing targets
- Visual Studio support
- Who is using NLog
- Advanced Examples
Extending NLog
Clone this wiki locally
Welcome to the NLog documentation! Just start with one of the tutorials to log messages within minutes!
NLog supports the .NET Frameworks 3.5 - 4.8 along with ASP.NET Core using Microsoft dependency injection. See the getting started pages.
Please note, for .NET Standard users a limited set is implemented. See the filter in the search page. To read more about .NET Standard, see the docs from Microsoft
For structured logging, introduced in NLog 4.5, see How to use structured logging
Are you missing some targets, layout renderers or renderers in NLog? Check extending NLog or even better, contribute to NLog!
Issues with logging? Check the Troubleshooting Guide
- Troubleshooting
- All (XML) config options: https://nlog-project.org/config