# NLog/NLog

NLog - Flexible and Structured Logging for various .NET Platforms

Repository: https://github.com/NLog/NLog
Canonical: https://ross.abutalabs.com/products/nlog
Homepage: https://nlog-project.org
Language: C#
License: BSD-3-Clause
License Family: permissive
Topics: nlog, logging, logging-library, netstandard, netstandard20, uwp, structured-logging, xamarin, csharp, c-sharp, dotnet, logger, aot-compatible, aot, cross-platform, json, maui, mono
Last push: 2026-08-23T15:50:00+00:00

## Health v2 (maintenance only)
Score: 95/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 86, longevity 100
- inputs: {"age_days": 5103, "days_push": 10, "days_rel": 17, "gap_med": 31, "n_releases_24m": 18}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 6546, forks 1378 (observed 2026-08-28T04:09:45.131598+00:00)

## What it is
NLog is a free, flexible logging platform for .NET supporting structured and traditional logging with rich routing to multiple targets. It is configurable via XML, appsettings.json, or code, and integrates with Microsoft.Extensions.Logging.

## Use cases
- add logging to a .NET application
- structured logging with message templates in C#
- route logs to files, console, and database simultaneously
- change logging configuration at runtime without restart
- integrate logging with ASP.NET Core ILogger

## When to choose
- you need a mature, high-performance .NET logging library
- you want flexible multi-target log routing and layouts
- you need Microsoft.Extensions.Logging integration

## When to avoid
- you are not on a .NET platform
- you prefer a minimal built-in logger with no configuration needs

## Facets
- artifact type: library
- maturity: stable
- function: logging
- domain: developer-tools, backend
- platform: dotnet, cross-platform
- tags: structured-logging, csharp, netstandard, xamarin, maui

## Member repositories
- NLog/NLog (main) score 95

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:45.131598+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:44:05.698745+00:00, confidence not recorded.
  - readme: https://github.com/NLog/NLog (fetched 2026-08-28T04:09:45.131598+00:00, sha 2bd4d687b766)
  - homepage: https://nlog-project.org (fetched 2026-08-29T08:40:20.136515+00:00, sha 1cc6fd7ace5a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
