Serilog alternative for .NET 9
SinkSharp is a structured logging library for C# and .NET 9 that outperforms Serilog by 3× on the hot path (single-threaded, NullSink baseline, measured with BenchmarkDotNet on .NET 9.0.20). It is fully compatible with Microsoft.Extensions.Logging (MEL) and works as a drop-in ILogger replacement — no code changes needed in your ASP.NET Core, Worker Service, or Console app.
Built-in PII masking for .NET logs
Unlike Serilog, SinkSharp includes automatic PII masking out of the box. Emails, credit card numbers, SSNs, and phone numbers are redacted before any sink writes — making compliance with GDPR and data protection requirements straightforward for .NET applications.
Free built-in log dashboard
SinkSharp ships with a free embedded real-time log dashboard at localhost:5341. It streams live log events via SignalR, supports level filtering, full-text search, and correlation ID tracing. No separate log viewer licence required.
High-performance logging for C# architects
Using an async bounded channel queue, SinkSharp enqueues log events in ~850ns on the caller thread (includes enrichment and enqueue). Enrichment, formatting, and sink writes happen on a dedicated background thread — keeping allocation at 80B with zero properties. Lock contentions near-zero vs 1,575 for Serilog at 4 concurrent threads (ConcurrentThroughputBenchmark, pre-created threads × 1,000 events each).