Serilog.Sinks.FastConsole
1.6.0
See the version list below for details.
dotnet add package Serilog.Sinks.FastConsole --version 1.6.0
NuGet\Install-Package Serilog.Sinks.FastConsole -Version 1.6.0
<PackageReference Include="Serilog.Sinks.FastConsole" Version="1.6.0" />
paket add Serilog.Sinks.FastConsole --version 1.6.0
#r "nuget: Serilog.Sinks.FastConsole, 1.6.0"
// Install Serilog.Sinks.FastConsole as a Cake Addin #addin nuget:?package=Serilog.Sinks.FastConsole&version=1.6.0 // Install Serilog.Sinks.FastConsole as a Cake Tool #tool nuget:?package=Serilog.Sinks.FastConsole&version=1.6.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 text buffer and async writes to remove all blocking and lock contention to the console output stream. It also implements IDiposable
so that calling Log.CloseAndFlush()
will ensure all lines are flushed. Recommended for high-volume logging where console logging is captured and sent elsewhere, for example this library was originally created for a large fleet of API servers running in Kubernetes and logging hundreds of large JSON objects every second.
Built for net6.0
, net5.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();
Sink Options
Name | Default | Description |
---|---|---|
UseJson |
true | Whether to write as a plaintext line or as a JSON object with { timestamp, level, message, properties } structure. Provide an ITextFormatter implementation instead if you want to customize the output completely. |
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. 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.10.0)
- System.Threading.Channels (>= 6.0.0)
-
.NETStandard 2.1
- Serilog (>= 2.10.0)
- System.Threading.Channels (>= 6.0.0)
-
net5.0
- Serilog (>= 2.10.0)
- System.Threading.Channels (>= 6.0.0)
-
net6.0
- Serilog (>= 2.10.0)
- System.Threading.Channels (>= 6.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 | 420,563 | 3/26/2023 |
2.3.0 | 38,557 | 1/9/2023 |
2.2.0 | 49,322 | 10/17/2022 |
2.1.0 | 101,200 | 6/12/2022 |
2.0.0 | 26,996 | 3/9/2022 |
1.6.0 | 1,620 | 2/20/2022 |
1.5.0 | 339,570 | 6/27/2021 |
1.4.1 | 9,447 | 4/25/2021 |
1.4.0 | 1,017 | 4/25/2021 |
1.3.2 | 148,433 | 6/9/2020 |
1.3.1 | 9,878 | 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,621 | 7/18/2019 |