Serilog.Sinks.RawConsole
0.0.2
See the version list below for details.
dotnet add package Serilog.Sinks.RawConsole --version 0.0.2
NuGet\Install-Package Serilog.Sinks.RawConsole -Version 0.0.2
<PackageReference Include="Serilog.Sinks.RawConsole" Version="0.0.2" />
paket add Serilog.Sinks.RawConsole --version 0.0.2
#r "nuget: Serilog.Sinks.RawConsole, 0.0.2"
// Install Serilog.Sinks.RawConsole as a Cake Addin #addin nuget:?package=Serilog.Sinks.RawConsole&version=0.0.2 // Install Serilog.Sinks.RawConsole as a Cake Tool #tool nuget:?package=Serilog.Sinks.RawConsole&version=0.0.2
Serilog.Sinks.RawConsole
Writes Serilog events to console or stream.
Writes by default in UTF-8 encoding, bypassing conversion from UTF-16 and avoiding heap allocations where possible.
Getting started
Install the Serilog.Sinks.RawConsole package from NuGet:
Install-Package Serilog.Sinks.RawConsole
To configure the sink in C# code, call WriteTo.RawConsole()
or WriteTo.RawStream
during logger configuration:
var log = new LoggerConfiguration()
.WriteTo.RawConsole()
.CreateLogger();
Performance
Output is buffered by default.
It is recommended to use Serilog.Sinks.Background package to wrap the file sink and perform all disk access on a background worker thread.
Building from sources
Serilog.Sinks.RawConsole
uses source dependency for format strings support without providing an external IBufferWriterFormatter implementation. To build this library either disable UTF8_FORMATTER
constant, or place this repository near.
Copyright © 2023 Serilog Contributors - Provided under the Apache License, Version 2.0.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | 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. |
-
net6.0
- Serilog (>= 2.10.0)
- Serilog.Formatting.BufferWriter (>= 0.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.