Serilog.Sinks.FastConsole 2.4.0

dotnet add package Serilog.Sinks.FastConsole --version 2.4.0                
NuGet\Install-Package Serilog.Sinks.FastConsole -Version 2.4.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Serilog.Sinks.FastConsole" Version="2.4.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Serilog.Sinks.FastConsole --version 2.4.0                
#r "nuget: Serilog.Sinks.FastConsole, 2.4.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Serilog.Sinks.FastConsole as a Cake Addin
#addin nuget:?package=Serilog.Sinks.FastConsole&version=2.4.0

// Install Serilog.Sinks.FastConsole as a Cake Tool
#tool nuget:?package=Serilog.Sinks.FastConsole&version=2.4.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();

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 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 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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 428,573 3/26/2023
2.3.0 38,675 1/9/2023
2.2.0 49,582 10/17/2022
2.1.0 101,339 6/12/2022
2.0.0 27,034 3/9/2022
1.6.0 1,622 2/20/2022
1.5.0 339,595 6/27/2021
1.4.1 9,449 4/25/2021
1.4.0 1,019 4/25/2021
1.3.2 148,505 6/9/2020
1.3.1 9,888 10/7/2019
1.3.0 1,715 7/18/2019
1.2.0 1,083 7/18/2019
1.1.0 1,110 7/18/2019
1.0.0 1,634 7/18/2019