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.
<PackageVersion Include="Vectron.Extensions.Logging.TextBlock" Version="4.3.6" />
                    
Directory.Packages.props
<PackageReference Include="Vectron.Extensions.Logging.TextBlock" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version 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.
#:package Vectron.Extensions.Logging.TextBlock@4.3.6
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Vectron.Extensions.Logging.TextBlock&version=4.3.6
                    
Install as a Cake Addin
#tool nuget:?package=Vectron.Extensions.Logging.TextBlock&version=4.3.6
                    
Install as a Cake Tool

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.  net9.0-windows was computed.  net10.0-windows was computed. 
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 199 3/29/2024
4.3.1 302 3/11/2024
4.2.104 344 2/23/2024
4.2.70 198 11/21/2023
4.2.11 175 7/10/2023
4.2.10 186 7/10/2023