Serilog.Sinks.WPF
1.1.0
See the version list below for details.
dotnet add package Serilog.Sinks.WPF --version 1.1.0
NuGet\Install-Package Serilog.Sinks.WPF -Version 1.1.0
<PackageReference Include="Serilog.Sinks.WPF" Version="1.1.0" />
paket add Serilog.Sinks.WPF --version 1.1.0
#r "nuget: Serilog.Sinks.WPF, 1.1.0"
// Install Serilog.Sinks.WPF as a Cake Addin #addin nuget:?package=Serilog.Sinks.WPF&version=1.1.0 // Install Serilog.Sinks.WPF as a Cake Tool #tool nuget:?package=Serilog.Sinks.WPF&version=1.1.0
Writes Serilog events to WPF TextBox control from anywhere in your application.
Getting started
Install the Serilog.Sinks.WPF package from NuGet:
Install-Package Serilog.Sinks.WPF
To configure the sink in C# code, call WriteToSimpleTextBox()
or WriteToJsonTextBox()
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();
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();
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. |
-
- 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.
Font can be configured. packages updated to latest