NLog

NLog - Advanced and Structured Logging for Various .NET Platforms

Github星跟蹤圖

NLog

NuGet
Semantic Versioning
Twitter Follow







Coverage


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.

Major and minor releases will be posted on project news. For smaller updates, follow us on Twitter

Getting started

For the possible options in the config, check the Options list

Having troubles? Check the troubleshooting guide


ℹ️ Looking for NLog 5? Just install NLog 4.5+!

NLog 4.5 implements the platforms added in NLog 5 (.NET Standard 1, .NET Standard 2, UWP, etc) and added structural logging, without breaking changes!

NLog Packages

NLog consists of multiple packages. Most of the functionality is inside the NLog (core) package. What's inside the packages? See targets and layout renderers overview!

See Nuget/build status of all official packages here

Questions, bug reports or feature requests?

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.

Do you have feature request or would you like to report a bug? Please post them on the issue list and follow these guidelines.

Frequently Asked Questions (FAQ)

See FAQ on the Wiki

Contributing

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)

  1. Fork the NLog repos.
  2. Create a new branch in you current repos from the 'dev' branch. (critical bugfixes from 'master')
  3. 'Check out' the code with Git or GitHub Desktop
  4. Check contributing.md
  5. Push commits and create a Pull Request (PR) to NLog

License

NLog is open source software, licensed under the terms of BSD license.
See LICENSE.txt for details.

How to build

Use Visual Studio 2017 and open the solution 'NLog.sln' - C# 7.2 support is required.

For building in the cloud we use:

  • AppVeyor for Windows builds, including Silverlight and Xamarin.
  • Travis for Mono builds.
  • CodeCov for code coverage

Trying to build your fork in the cloud? Check this how-to

主要指標

概覽
名稱與所有者NLog/NLog
主編程語言C#
編程語言C# (語言數: 3)
平台
許可證BSD 3-Clause "New" or "Revised" License
所有者活动
創建於2012-09-12 13:49:29
推送於2025-04-13 10:56:30
最后一次提交2025-04-12 11:42:28
發布數163
最新版本名稱v5.4.0 (發布於 )
第一版名稱NLog-0.9 (發布於 )
用户参与
星數6.4k
關注者數273
派生數1.4k
提交數6.9k
已啟用問題?
問題數2740
打開的問題數53
拉請求數2491
打開的拉請求數9
關閉的拉請求數471
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?