# Serilog

Simple .NET logging with fully-structured events

Repository: https://github.com/serilog/serilog
Canonical: https://ross.abutalabs.com/products/serilog
Homepage: https://serilog.net
Language: C#
License: Apache-2.0
License Family: permissive
Topics: serilog
Last push: 2026-07-31T10:58:30+00:00
Link (homepage): https://serilog.net

## Health v2 (maintenance only)
Score: 87/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 95, release rhythm 68, longevity 100
- inputs: {"age_days": 4948, "days_push": 33, "days_rel": 54, "gap_med": 149, "n_releases_24m": 6}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 8032, forks 862 (observed 2026-08-28T04:10:11.967872+00:00)

## What it is
Serilog is a diagnostic logging library for .NET applications with first-class support for structured event data. It captures named properties from message templates so logs can be searched and analyzed without parsing, and writes to files, console, and many other sinks.

## Use cases
- add structured logging to a .NET application
- log events as JSON for log aggregation platforms
- instrument ASP.NET Core apps with rich diagnostics
- search application logs by property values instead of regex
- write logs to console, files, and external sinks
- capture object state in log events for debugging distributed systems

## When to choose
- you're building .NET applications and want structured, queryable logs
- you need flexible output targets (console, file, Seq, Elasticsearch, etc.) via sinks
- you want a clean, easy-to-configure logging API with active maintenance

## When to avoid
- you're not on a .NET platform
- you only need trivial plain-text logging and want zero dependencies
- your team is standardized on another logging facade like Microsoft.Extensions.Logging alone

## Facets
- artifact type: library
- maturity: stable
- function: logging, serialization, developer-tools
- domain: developer-tools, backend, monitoring
- platform: dotnet, cross-platform
- tags: structured-logging, message-templates, sinks, aspnetcore, nuget, observability, dotnet, web-server

## Member repositories
- serilog/serilog (main) score 87
- serilog/serilog-aspnetcore (plugin) score 74

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:11.967872+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:31:30.398622+00:00, confidence not recorded.
  - readme: https://github.com/serilog/serilog (fetched 2026-08-28T04:10:11.967872+00:00, sha c05c7e3158ed)
  - homepage: https://serilog.net (fetched 2026-08-29T08:29:10.706246+00:00, sha 8ec82aa49779)
- Data as of 2026-08-30T08:39:29.467469+00:00.
