NLog - Advanced and Structured Logging for Various .NET Platforms
NLog is a free logging platform for .NET with rich log routing and management capabilities. It makes it easy to produce and manage high-quality logs for your application regardless of its size or complexity.
It can process diagnostic messages emitted from any .NET language, augment them with contextual information, format them according to your preference and send them to one or more targets such as file or database.
For the possible options in the config, check the Options list
Having troubles? Check the troubleshooting guide
ℹ️ NLog 5 Preview!
There is a new shiny NLog 5 Preview package. See news post
See Nuget/build status of all official packages here
Issues with getting it working? Please check the troubleshooting guide before asking! With a clear error message, it's really easier to solve the issue!
Unclear how to configure NLog correctly of other questions? Please post questions on StackOverflow.
See FAQ on the Wiki
As the current NLog team is a small team, we cannot fix every bug or implement every feature on our own. So contributions are really appreciated!
If you like to start with a small task, then up-for-grabs are nice to start with.
Please note, we have a
masteris for pure bug fixes and targets NLog 4.x
devtargets NLog 5
A good way to get started (flow)
Please note: bugfixes should target the master branch, others the dev branch (NLog 5)
NLog is open source software, licensed under the terms of BSD license. See LICENSE.txt for details.
Use Visual Studio 2019 and open the solution 'NLog.sln'.
For building in the cloud we use: - AppVeyor for Windows builds, including Silverlight and Xamarin. - SonarQube for code coverage
Trying to build your fork in the cloud? Check this how-to