SinkSharp.Sinks.Console
1.0.1
dotnet add package SinkSharp.Sinks.Console --version 1.0.1
NuGet\Install-Package SinkSharp.Sinks.Console -Version 1.0.1
<PackageReference Include="SinkSharp.Sinks.Console" Version="1.0.1" />
<PackageVersion Include="SinkSharp.Sinks.Console" Version="1.0.1" />
<PackageReference Include="SinkSharp.Sinks.Console" />
paket add SinkSharp.Sinks.Console --version 1.0.1
#r "nuget: SinkSharp.Sinks.Console, 1.0.1"
#:package SinkSharp.Sinks.Console@1.0.1
#addin nuget:?package=SinkSharp.Sinks.Console&version=1.0.1
#tool nuget:?package=SinkSharp.Sinks.Console&version=1.0.1
SinkSharp.Sinks.Console
Coloured console sink for SinkSharp — high-performance structured logging for .NET 9.
Install
dotnet add package SinkSharp.Core
dotnet add package SinkSharp.Sinks.Console
Usage
builder.Services.AddSinkSharp(options => options
.MinimumLevel(LogLevel.Information)
.WriteTo(new ColoredConsoleSink()));
Log level colours
| Level | Colour |
|---|---|
| Debug | Grey |
| Information | Default |
| Warning | Yellow |
| Error | Red |
| Critical | Dark red |
Dependencies
| Package | Version |
|---|---|
| SinkSharp.Core | 1.0.0 |
Release notes
v1.0.0
- ANSI colour output for all log levels
- Writes on background drainer thread — zero caller-thread blocking
Links
| 🌐 Website | https://www.sinksharp.com |
| 🧪 Samples | https://github.com/SinkSharp/Samples |
| 📧 Support | support@sinksharp.com |
| 📄 Licence | Apache 2.0 |
| 📋 Changelog | CHANGELOG.md |
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net9.0
- SinkSharp.Core (>= 1.0.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
v1.0.0 — Initial release
• Striped async channel queue (one per CPU core)
• MessageTemplate caching — zero parse cost after first call
• LogEvent object pool — reduced GC pressure
• Built-in PII masking (email, credit card, SSN, phone)
• Correlation ID auto-propagation via AsyncLocal
• Per-category log level overrides
• MEL ILogger<T> compatible — no code changes needed
• Full GitHub Actions Trusted Publishing support
See full changelog: https://github.com/SinkSharp/.github/blob/main/profile/CHANGELOG.md