Serilog.Sinks.WinForms
2.2.3
See the version list below for details.
dotnet add package Serilog.Sinks.WinForms --version 2.2.3
NuGet\Install-Package Serilog.Sinks.WinForms -Version 2.2.3
<PackageReference Include="Serilog.Sinks.WinForms" Version="2.2.3" />
<PackageVersion Include="Serilog.Sinks.WinForms" Version="2.2.3" />
<PackageReference Include="Serilog.Sinks.WinForms" />
paket add Serilog.Sinks.WinForms --version 2.2.3
#r "nuget: Serilog.Sinks.WinForms, 2.2.3"
#:package Serilog.Sinks.WinForms@2.2.3
#addin nuget:?package=Serilog.Sinks.WinForms&version=2.2.3
#tool nuget:?package=Serilog.Sinks.WinForms&version=2.2.3
Writes Serilog events to Windows Froms Application TextBox or Datagridview 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 WriteToSimpleTextBox() or WriteToJsonTextBox() or WriteToGridView() during logger configuration:
Simple Text Formatted Log
SimpleLogTextBox can be used from visual studio toolbox once the package is added to the project.
Log.Logger = new LoggerConfiguration()
.WriteToSimpleTextBox()
.CreateLogger();
SimpleLogTextBox with custom Configuration. SimpleLogTextBox accepts ITextFormatter
Log.Logger = new LoggerConfiguration()
.WriteToSimpleTextBox(new MessageTemplateTextFormatter("{Timestamp} [{Level}] {Message} {Exception}"))
.CreateLogger();
Json Formatted Log
JsonLogTextBox can be used from visual studio toolbox once the package is added to the project.
Log.Logger = new LoggerConfiguration()
.WriteToJsonTextBox()
.CreateLogger();
JsonLogTextBox with custom Configuration. JsonLogTextBox accepts ITextFormatter
Log.Logger = new LoggerConfiguration()
.WriteToSimpleTextBox(new JsonFormatter())
.CreateLogger();
Datagridview Log
GridLog can be used from visual studio toolbox once the package is added to the project.
Log.Logger = new LoggerConfiguration()
.WriteToGridView()
.CreateLogger();
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET Framework | net46 is compatible. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
-
- Serilog (>= 2.10.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.5.0 | 883 | 1/9/2025 | |
| 2.4.3 | 8,900 | 9/2/2022 | |
| 2.4.2 | 1,799 | 4/8/2022 | |
| 2.4.1 | 1,039 | 4/8/2022 | |
| 2.4.0 | 1,549 | 4/8/2022 | |
| 2.3.1 | 3,719 | 5/27/2021 | |
| 2.3.0 | 1,734 | 5/1/2021 | |
| 2.2.6 | 2,417 | 3/2/2021 | |
| 2.2.5 | 1,756 | 2/19/2021 | |
| 2.2.4 | 892 | 2/18/2021 | |
| 2.2.3 | 1,351 | 11/29/2020 | |
| 2.2.2 | 987 | 11/18/2020 | |
| 2.2.1 | 1,094 | 9/19/2020 | |
| 2.2.0 | 1,044 | 9/12/2020 | |
| 2.1.0 | 964 | 9/10/2020 | |
| 2.0.0 | 1,045 | 9/3/2020 | |
| 1.1.0 | 1,101 | 8/31/2020 |
Font and size can be configured now, packages updated to latest