Vectron.Extensions.Logging.TextBlock 4.3.6

dotnet add package Vectron.Extensions.Logging.TextBlock --version 4.3.6
NuGet\Install-Package Vectron.Extensions.Logging.TextBlock -Version 4.3.6
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="Vectron.Extensions.Logging.TextBlock" Version="4.3.6" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Vectron.Extensions.Logging.TextBlock --version 4.3.6
#r "nuget: Vectron.Extensions.Logging.TextBlock, 4.3.6"
#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 Vectron.Extensions.Logging.TextBlock as a Cake Addin
#addin nuget:?package=Vectron.Extensions.Logging.TextBlock&version=4.3.6

// Install Vectron.Extensions.Logging.TextBlock as a Cake Tool
#tool nuget:?package=Vectron.Extensions.Logging.TextBlock&version=4.3.6

Vectron.Extensions.Logging.TextBlock

License: MIT Build status NuGet

Vectron.Extensions.Logging.TextBlock provides a WPF TextBlock logger provider implementation for Microsoft.Extensions.Logging.

To mark a TextBlock as the logger target you can use a behavior. In the next example the TextBlock will be used to display the logs.

<Window
    x:Class="LogExample.Wpf.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:textblockLogging="clr-namespace:Vectron.Extensions.Logging.TextBlock;assembly=Vectron.Extensions.Logging.TextBlock"
    Title="Logging example"
    mc:Ignorable="d">
    <DockPanel>
        <ScrollViewer VerticalScrollBarVisibility="Auto" DockPanel.Dock="Bottom">
            <TextBlock
                textblockLogging:TextblockLoggerBehavior.LoggerTarget="True" />
        </ScrollViewer>
    </DockPanel>
</Window>

Authors

Product Compatible and additional computed target framework versions.
.NET net6.0-windows7.0 is compatible.  net7.0-windows was computed.  net7.0-windows7.0 is compatible.  net8.0-windows was computed.  net8.0-windows7.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Vectron.Extensions.Logging.TextBlock:

Package Downloads
Vectron.Extensions.Logging.Theming.TextBlock

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
4.3.6 90 3/29/2024
4.3.1 145 3/11/2024
4.2.104 192 2/23/2024
4.2.70 146 11/21/2023
4.2.11 98 7/10/2023
4.2.10 108 7/10/2023