NLog-Flexible & free open-source logging for .NET

Flexible & free open-source logging for .NET

Download NLog

Latest version: 4.7

  Tweet #nlog Follow @NLogOfficial

Welcome to NLog!

NLog is a flexible and free logging platform for various .NET platforms, including .NET standard. NLog makes it easy to write to several targets. (database, file, console) and change the logging configuration on-the-fly.

NLog has support for structured and traditional logging.

The focus for NLog: high performance, easy-to-use, easy to extend and flexible to configure.

Features

Easy to configure

NLog is very easy to configure, both through configuration file and programmatically. Even without restarting the application, the configuration can be changed.

Templatable

Every log message can be templated with various layout renders

Extensible

Even though NLog has targets and pre-defined layouts, you can write custom targets or pass custom values

Structured logging

Fully support for structured logging

Targets

Targets are used to display, store or pass log messages to another destination. NLog can dynamically write to one of multiple targets for each log message.

There are more than 30 targets provided out-of-the-box, including:

 Files

Write logs to any number of files, with automatic file naming and archival. NLog won't lock your files by default.

 Event Log

Write to event log local or remote

 Database

Store your logs in databases supported by .NET

 Console

Write real-time to the command-line console including color coding of messages

 E-mail

You can send emails whenever application errors occur

 ASP.NET core Logging

Write log messages to the ASP.NET Core Logging

There are also wrapper targets which provide bufferingload balancingfailover situationsasynchronous writing and many more scenarios. The full list of targets is available on the config options page. If you didn't find the target to fit your needs, you can easily write a custom one.

Support

NLog supports the following platforms:

  • .NET Framework 3.5, 4, 4.5 - 4.8
  • .NET Framework 4 client profile
  • Xamarin Android
  • Xamarin iOs
  • Windows Phone 8
  • Silverlight 4 and 5
  • Mono 4
  • ASP.NET 4 (NLog.Web package)
  • ASP.NET Core (NLog.Web.AspNetCore package)
  • .NET Core (NLog.Extensions.Logging package)
  • .NET Standard 1.x - NLog 4.5
  • .NET Standard 2.x - NLog 4.5
  • UWP - NLog 4.5

License

The source code is available under the terms of BSD license.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值