Serilog.Sinks.WPF 1.1.0

There is a newer version of this package available.
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                
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.WPF" 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.WPF --version 1.1.0                
#r "nuget: Serilog.Sinks.WPF, 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.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 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.

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
1.2.1 4,346 5/28/2021
1.2.0 369 4/28/2021
1.1.0 501 9/21/2020
1.0.0 453 9/3/2020

Font can be configured. packages updated to latest