Serilog.Sinks.WinForms
1.1.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Serilog.Sinks.WinForms --version 1.1.0
NuGet\Install-Package Serilog.Sinks.WinForms -Version 1.1.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.WinForms" Version="1.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Serilog.Sinks.WinForms --version 1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Serilog.Sinks.WinForms, 1.1.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.WinForms as a Cake Addin
#addin nuget:?package=Serilog.Sinks.WinForms&version=1.1.0
// Install Serilog.Sinks.WinForms as a Cake Tool
#tool nuget:?package=Serilog.Sinks.WinForms&version=1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Serilog.Sinks.WinForms
Writes Serilog events to Winforms TextBox control from anywhere in your application.
Getting started
Install the Serilog.Sinks.WinForms package from NuGet:
Install-Package Serilog.Sinks.WinForms
To configure the sink in C# code, call WriteTo.Sink()
during logger configuration:
Simple Text Formatted Log
Log.Logger = new LoggerConfiguration()
.WriteTo.Sink(WindFormsSink.SimpleTextBoxSink)
.CreateLogger();
Json Formatted Log
Log.Logger = new LoggerConfiguration()
.WriteTo.Sink(WindFormsSink.JsonTextBoxSink)
.CreateLogger();
Sample Code
Find the sample running application here
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net48 is compatible. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
- Serilog (>= 2.9.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated | |
---|---|---|---|
2.4.3 | 5,946 | 9/2/2022 | |
2.4.2 | 1,495 | 4/8/2022 | |
2.4.1 | 813 | 4/8/2022 | |
2.4.0 | 961 | 4/8/2022 | |
2.3.1 | 3,388 | 5/27/2021 | |
2.3.0 | 1,519 | 5/1/2021 | |
2.2.6 | 1,168 | 3/2/2021 | |
2.2.5 | 1,593 | 2/19/2021 | |
2.2.4 | 737 | 2/18/2021 | |
2.2.3 | 1,169 | 11/29/2020 | |
2.2.2 | 827 | 11/18/2020 | |
2.2.1 | 931 | 9/19/2020 | |
2.2.0 | 870 | 9/12/2020 | |
2.1.0 | 800 | 9/10/2020 | |
2.0.0 | 844 | 9/3/2020 | |
1.1.0 | 911 | 8/31/2020 |
Writes Serilog events to Winforms TextBox control