
Description
Serilog is an agent skill for structured logging in .NET 10 applications. It covers a two-stage bootstrap, appsettings configuration, enrichers, sinks, request logging and related setup. The bootstrap creates a logger for startup, so errors that happen before dependency injection is ready are not lost, and then swaps in the full logger once the services are built. The skill recommends builder.Services.AddSerilog() over the older UseSerilog() host method, and wires it to services with ReadFrom.Services. It asks for message templates with named properties, such as {PropertyName}, rather than string interpolation, because templates keep the data queryable and interpolation allocates even when the log level is disabled. It also keeps log levels, sinks and overrides in appsettings.json so they can change per environment without a redeploy. It suits .NET developers who want logs they can search and filter.…
Highlights
- Two-stage bootstrap that captures startup errors
- AddSerilog() with DI-aware configuration
- Message templates instead of string interpolation
- Log levels and sinks kept in appsettings.json
Ratings & Reviews
No ratings yet
Be the first to rate serilog.
People also visit

golang-samber-slog
Structured logging extensions for Golang using samber/slog-**** packages
serilog FAQ
What is the two-stage bootstrap?
A bootstrap logger runs at startup, then the full logger replaces it once dependency injection is ready, so startup errors are captured.
Why avoid string interpolation in logs?
Message templates with {PropertyName} keep the log data structured and queryable. Interpolation breaks that structure and allocates even when the level is disabled.
Where is the configuration kept?
Log levels, sinks and overrides go in appsettings.json, so they can change per environment without a redeploy.
What do the security audits show?
Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Pass.
How do I install it?
Run npx skills add https://github.com/codewithmukesh/dotnet-claude-kit --skill serilog.
What are the best serilog alternatives?
Popular alternatives to serilog include configuration, opentelemetry and golang-samber-slog. See all serilog alternatives









