serilog

安装量: 2.2K
排名: #7886

安装

npx skills add https://github.com/codewithmukesh/dotnet-claude-kit --skill serilog

Serilog Core Principles Two-stage initialization — Create a bootstrap logger for startup, then replace it with the full logger after DI is ready. This captures startup errors that would otherwise be lost. AddSerilog() over UseSerilog() — Use builder.Services.AddSerilog() (the modern API) instead of builder.Host.UseSerilog() . It integrates with DI services via ReadFrom.Services(services) . Message templates, not interpolation — {PropertyName} syntax creates structured data that can be queried. String interpolation ( $"..." ) breaks structure and allocates even when the log level is disabled. Configure via appsettings.json — Keep log levels, sinks, and overrides in configuration so they can change per environment without redeployment. Patterns Two-Stage Bootstrap Setup using Serilog ; Show more Installs 1.1K Repository codewithmukesh/…aude-kit GitHub Stars 700 First Seen Mar 13, 2026 Security Audits Gen Agent Trust Hub Pass Socket Pass Snyk Pass

← 返回排行榜