# NLog

> Flexible, structured logging for .NET

Source: https://talira.ai/catalog/nlog-9xg57dv4
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / logging](https://talira.ai/categories/libraries/logging)
- Licence: BSD-3-Clause[^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Supports: [NO_COLOR](https://talira.ai/standards/no-color.md)[^3]
- Backed by: [NLog](https://talira.ai/orgs/nlog-project.md)

NLog is a logging library for .NET that writes to many targets at once (console, files, databases and more) and supports both structured logging with message templates and traditional text logging. It's configured in an NLog.config file, appsettings.json or code, and the configuration can change while the app runs. Layouts format output as plain text, JSON, XML or CSV, and it plugs into Microsoft.Extensions.Logging and ASP.NET Core without replacing the standard LoggerFactory.

## Links

- Website: https://nlog-project.org/
- GitHub: https://github.com/NLog/NLog
- Docs: https://nlog-project.org/documentation/

## Problems it solves

- log to files, a database and the console at once in a .NET app
- structured logging in ASP.NET Core without replacing Microsoft's logger
- change logging configuration without restarting the app

## Features

- many targets: console, file, database and more
- structured and traditional logging
- JSON, XML and CSV layouts
- configuration from NLog.config, appsettings.json or code, changeable at runtime
- Microsoft.Extensions.Logging and ASP.NET Core integration
- custom targets and layouts

## Trust

Overall: 0.69 out of 1.
Signals: maintenance 1.00, adoption 0.76, momentum 0.48, community 0.96, backing 0.30, extensibility 0.00.

- last commit 6 days ago
- 87 commits in the last 90 days
- latest release v6.2.2 45 days ago
- 6.5k GitHub stars
- 244 contributors
- has a company behind it

## Alternatives

- [Serilog](https://talira.ai/catalog/serilog-y4wz6ahr.md): Simple .NET logging with fully structured events
- [Apache log4net](https://talira.ai/catalog/apache-log4net-dfxy7zcp.md): A logging library for .NET

## Sources

[^1]: https://nlog-project.org/ (checked 27 Nov 2026)
[^2]: https://github.com/NLog/NLog/blob/main/LICENSE.txt (checked 27 Nov 2026)
[^3]: https://github.com/NLog/NLog/releases/tag/v5.4.0 (checked 28 Nov 2026)
