Serilog.Sinks.FastConsole
2.3.0
See the version list below for details.
dotnet add package Serilog.Sinks.FastConsole --version 2.3.0
NuGet\Install-Package Serilog.Sinks.FastConsole -Version 2.3.0
<PackageReference Include="Serilog.Sinks.FastConsole" Version="2.3.0" />
paket add Serilog.Sinks.FastConsole --version 2.3.0
#r "nuget: Serilog.Sinks.FastConsole, 2.3.0"
// Install Serilog.Sinks.FastConsole as a Cake Addin #addin nuget:?package=Serilog.Sinks.FastConsole&version=2.3.0 // Install Serilog.Sinks.FastConsole as a Cake Tool #tool nuget:?package=Serilog.Sinks.FastConsole&version=2.3.0
Serilog.Sinks.FastConsole
Serilog sink that writes to console with high-performance non-blocking output. Supports plaintext and JSON output but does not support themes and colors.
This sink uses a background channel with a single reader, efficient text buffer, and asynchronous writes to remove all blocking and lock contention to the console output stream. It also implements IDiposable
so calling Log.CloseAndFlush()
will ensure all lines are flushed.
Recommended for high-volume logging where console output is collected or redirected to another system, for example this library was originally created for large application clusters running in Kubernetes and logging hundreds of JSON objects every second.
- Built for
net6.0
,netstandard2.1
,netstandard2.0
- Release notes here: CHANGELOG.md
Getting started
Install package from Nuget:
dotnet add package Serilog.Sinks.FastConsole
Configure Logger (using code):
var config = new FastConsoleSinkOptions { UseJson = true };
Log.Logger = new LoggerConfiguration().WriteTo.FastConsole(config).CreateLogger();
- Serilog example for .NET 6: https://blog.datalust.co/using-serilog-in-net-6/
Sink Options
Name | Default | Description |
---|---|---|
UseJson |
true | Enable to write log events as a JSON object with { timestamp, level, message, properties } structure. Provide an ITextFormatter implementation instead to customize the output completely. |
QueueLimit |
null | Set max limit for the number of log entries queued in memory. Used to provide backpressure and avoid out-of-memory issues for high-volume logging. |
BlockWhenFull |
false | Set behavior when queue is full. When true this will block the thread until logs are output to console. Only applicable if QueueLimit is set. |
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Serilog (>= 2.12.0)
- System.Threading.Channels (>= 7.0.0)
-
.NETStandard 2.1
- Serilog (>= 2.12.0)
- System.Threading.Channels (>= 7.0.0)
-
net6.0
- Serilog (>= 2.12.0)
- System.Threading.Channels (>= 7.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Serilog.Sinks.FastConsole:
Package | Downloads |
---|---|
DotCart.Drivers.Serilog
Package Description |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on Serilog.Sinks.FastConsole:
Repository | Stars |
---|---|
R2NorthstarTools/VTOL
A Manager and Installer For the Titanfall 2 +Northstar launcher.
|
Version | Downloads | Last updated |
---|---|---|
2.4.0 | 426,894 | 3/26/2023 |
2.3.0 | 38,634 | 1/9/2023 |
2.2.0 | 49,495 | 10/17/2022 |
2.1.0 | 101,284 | 6/12/2022 |
2.0.0 | 27,016 | 3/9/2022 |
1.6.0 | 1,620 | 2/20/2022 |
1.5.0 | 339,592 | 6/27/2021 |
1.4.1 | 9,447 | 4/25/2021 |
1.4.0 | 1,017 | 4/25/2021 |
1.3.2 | 148,481 | 6/9/2020 |
1.3.1 | 9,886 | 10/7/2019 |
1.3.0 | 1,713 | 7/18/2019 |
1.2.0 | 1,081 | 7/18/2019 |
1.1.0 | 1,108 | 7/18/2019 |
1.0.0 | 1,630 | 7/18/2019 |