Vote or submit ideas on UserEcho!
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.
Packages & Status
|NLog (.Net / Silverlight 4+5 / Xamarin iOS / Xamarin Android / Windows Phone 8)|
|NLog (.NET Core) - coreCLR branch|
|NLog (Microsoft Logging Platform)|
|NLog.Web for ASP.NET Core|
Questions, bug reports or feature requests?
Do you have feature requests, questions or would you like to report a bug? Please post them on the issue list and follow these guidelines. You could also post questions on StackOverflow - in general your will get faster response there. Please also post or vote features requests on UserEcho.
Frequently Asked Questions (FAQ)
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.
A good way to get started (flow)
- Fork the NLog repos.
- Create a new branch in you current repos from the 'master' branch.
- 'Check out' the code with Git or GitHub Desktop
- Check contributing.md
- push commits and create a Pull Request (PR) to NLog
NLog is open source software, licensed under the terms of BSD license. See LICENSE.txt for details.
How to build
Use Visual Studio 2012/2013/2015 and open solution file in the 'src' folder, like 'NLog.netfx45.sln' C# 6.0 support (Visul Studio 2015) is required to build UnitTest project, like 'NLog.UnitTests.netfx45'.
For building in the cloud we use:
- AppVeyor for Windows builds, including Silverlight and Xamarin.
- Travis for Mono builds.
- CodeCov for code coverage
How to build your fork in the cloud
- Login with your Github account to https://ci.appveyor.com
- Choose "projects"
- Select your fork and press "+" button
- Done. All config is in appveyor.yml already
- Login with your Github account to https://travis-ci.org/
- Select your fork
- Push and wait
CodeCov: (AppVeyor needed)
- Login with your Github account to https://codecov.io/
- Press "+ Add new repository to Codecov" button
- Select your fork
- Wait for a build on AppVeyor. All the config is already in appveyor.yml. The first report can take some minutes after the first build.