Home
Rolf Kristensen edited this page Nov 18, 2023
·
65 revisions
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.
For structured logging, introduced in NLog 4.5, see How to use structured logging
There are many available output options:
- NLog Targets - Output destinations
- NLog Layout-Renderers - Output templates
- NLog Layouts - Output formats
Are you missing some targets or layouts in NLog? Check extending NLog or even better, contribute to NLog!
Issues with logging? Check the Troubleshooting Guide
- Troubleshooting Guide - See available NLog Targets and Layouts: https://nlog-project.org/config
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
- Optimize Logging Performance
- 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
