Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
N

NLog

> 数据库
Open source

NLog - Flexible and Structured Logging for various .NET Platforms

6.5K stars0 likes1 views
WebsiteGitHub

About

NLog - Flexible 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.

Handles both structured logging and traditional logging from any .NET language, augment with contextual information, format according to your preference and send them to one or more targets such as file or console.

Major and minor releases will be posted on project news.

Getting started

  • .NET Framework
  • ASP.NET Core
  • .NET Core Console

For the possible options in the config, check the Options list and API Reference

Having troubles? Check the troubleshooting guide


ℹ️ NLog 6.0 supports AOT

NLog 6.0 now available. See also List of major changes in NLog 6.0

NLog Extensions

The NLog-nuget-package provides everything needed for doing file- and console-logging. If you need other output options, then there are many NLog extension packages available (such as database, email, https-endpoint, etc.). See targets and layout renderers overview!

The NLog extension packages maintained by the NLog-project are listed here with Nuget/build status.

It is also possible to Create your own custom NLog extensions.

Questions, bug reports or feature requests?

If having issues with getting NLog working? Then please check the troubleshooting guide before asking! This will often provide you with clear error message when asking, so it is easier to solve the issue!

If having questions about how to configure NLog correctly? Then please post questions on StackOverflow (using the nlog tag)

Have you found a bug or issue with NLog functionality? Please post them on the issue list and follow these guidelines.

Frequently Asked Questions (FAQ)

See FAQ on the Wiki

License

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

Issues· 50 open

View all issuesOpen on GitHub
  • #5478

    AsyncTargetWrapper with OverflowAction=Block halts on ThreadPool starvation

    featureup-for-grabsUpdated Sep 20, 2026
  • #6270

    NLog Unit Testing with AOT

    unit-testsplatform supportUpdated Sep 12, 2026
  • #6235

    New immutable LogEvent struct for non-allocation logging

    discussionbreaking changebreaking behavior changeUpdated Aug 22, 2026
  • #6232

    DateLayoutRenderer default Format should be culture invariant

    breaking changebreaking behavior changeUpdated Aug 18, 2026
  • #6241

    .NET Matrix

    Updated Aug 6, 2026
  • #4643

    ScopeContext - Allow child task to propagate context properties to parent

    featureup-for-grabsUpdated Jun 25, 2026
  • #6184

    Remove support for legacy ComponentModel TypeDescriptor

    breaking changenlog-configurationbreaking behavior changeUpdated May 31, 2026
  • #6203

    NLog internalLogFile should be relative to BaseDir

    internal-logbreaking behavior changeUpdated May 31, 2026
  • #6201

    Remove usage of ReadOnlyCollection as property wrapper

    breaking changeUpdated May 31, 2026
  • #6186

    Remove ServiceRepository from ConfigurationItemFactory

    breaking changeUpdated May 24, 2026

> Tags

C#aotaot-compatiblec-sharpcross-platform

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 24, 2026
Category数据库
PricingOpen source

> Related tools

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库