OSS TanbouSign in with GitHub

Capture named .NET log properties and route events to multiple outputs

About these scores

OSS scale score is an unbounded metric that log-compresses and weights Stars, Watchers, Forks, and Contributors. Discovery score is the current OSS scale score minus the score at discovery. Update pace is commits in the last 30 days, growth momentum is the OSS scale score difference within the recent observation window, and OSS health is a 0–100 rating based on available recency, Community Health, and release data.

Stars
8,049
Primary language
C#
License
Apache-2.0
Repository last updated
Sep 13, 2026
On this page

Overview

Serilog records .NET diagnostic information as structured events. It names values embedded in a message so the human-readable text and the data used for search or aggregation remain in the same log event.

Features and best fit

Based on official documentation; not hands-on tested · Content checked:

Key features

Create searchable properties from message templates

A message template such as Log.Information("Processed {Count} items", 3) records both rendered text and a named Count value. Sinks route events to consoles, files, cloud services, databases, or message queues, while enrichers add shared context such as an application name or request identifier.

Sources: [1]

Best fit

Search and correlate work across distributed operations

It fits .NET applications that need consistent property names across web requests, background jobs, and calls to external APIs. Compared with interpolating every value into plain text, retaining RequestId, CustomerId, or elapsed time as properties makes incident filtering, aggregation, and correlation more reliable.

Sources: [1]

Before adoption

Include sinks, shutdown, and recorded values in the operating design

The core package produces no output until at least one sink is configured. Buffered sinks may require a flush before shutdown, and teams should test whether destination failures lose events or delay the application. Remove or redact secrets and personal data before passing values into templates. Version 4.4.0 targets .NET 6, 8, 9, 10 and .NET Standard 2.0 among others; GitHub reports Apache-2.0.

Sources: [1][2][4][5]

Official sources

  1. [1]Serilog v4.4.0 README(2026-10-04)
  2. [2]Serilog v4.4.0 project targets(2026-10-04)
  3. [3]Serilog.Sinks.Console v6.1.1 project targets(2026-10-04)
  4. [4]serilog/serilog GitHub repository metadata(2026-10-04)
  5. [5]Serilog v4.4.0 LICENSE(2026-10-04)
Supplemental curator note

Structured logging pays off only when the selected sink and storage preserve named properties. Test search, retention, and failure behavior in the real destination, and assess each sink package separately from the core.

Try it in 3 steps

  1. 1

    Create a .NET 8 console project

    With the .NET 8 SDK in a POSIX shell on macOS or Linux, or in Git Bash or WSL on Windows, create a disposable project and enter it. Continue in the same terminal and working directory.

    dotnet new console -n serilog-demo --framework net8.0 && cd serilog-demo
  2. 2

    Add fixed core and console sink releases

    Add the reviewed Serilog core and console sink versions from NuGet.

    dotnet add package Serilog --version 4.4.0 && dotnet add package Serilog.Sinks.Console --version 6.1.1
  3. 3

    Emit and verify a structured event

    Write Program.cs with LF line endings, emit an event with a named Count property, and verify its rendered output. The command changes local files only.

    printf '%s\n' 'using Serilog;' '' 'Log.Logger = new LoggerConfiguration().WriteTo.Console().CreateLogger();' 'Log.Information("Processed {Count} items", 3);' 'Log.CloseAndFlush();' > Program.cs && dotnet run | tee output.txt && grep -F 'Processed 3 items' output.txt
Check the official README

Growth

Growth trends · Last 30 days

8,049 Stars

Trend data is still being collected.

Development activity

Last 90 days · weekly

Commits (last 30 days)
1
Open PRs
6

Development activity is still being collected.

Built with

Categories and tags

Categories

GitHub data

GitHub dataView detailed GitHub data

GitHub Topics

  • serilog
Stars
8,049
Forks
866
Watchers
161
Open issues
15
Contributors
122
Owner type
Organization
Primary language
C#
License
Apache-2.0
Repository last updated
Sep 13, 2026
Write a related article

Share a guide or use case for this OSS in Markdown. Articles are published after administrator approval.

Report incorrect information

Tell us if any listing information is incorrect or outdated.

After reading this page, do you know what to do next?