Vectron.Extensions.Logging.TextBlock
4.2.104
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Vectron.Extensions.Logging.TextBlock --version 4.2.104
NuGet\Install-Package Vectron.Extensions.Logging.TextBlock -Version 4.2.104
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.2.104" />
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.2.104
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Vectron.Extensions.Logging.TextBlock, 4.2.104"
#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.2.104 // Install Vectron.Extensions.Logging.TextBlock as a Cake Tool #tool nuget:?package=Vectron.Extensions.Logging.TextBlock&version=4.2.104
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Vectron.Extensions.Logging.TextBlock
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 | Versions 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0-windows7.0
- Microsoft.Extensions.Configuration.Abstractions (>= 8.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.0)
- Microsoft.Extensions.Logging.Configuration (>= 8.0.0)
- Microsoft.Extensions.Options (>= 8.0.1)
- Microsoft.Xaml.Behaviors.Wpf (>= 1.1.77)
- Vectron.Ansi (>= 1.0.85)
-
net7.0-windows7.0
- Microsoft.Extensions.Configuration.Abstractions (>= 8.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.0)
- Microsoft.Extensions.Logging.Configuration (>= 8.0.0)
- Microsoft.Extensions.Options (>= 8.0.1)
- Microsoft.Xaml.Behaviors.Wpf (>= 1.1.77)
- Vectron.Ansi (>= 1.0.85)
-
net8.0-windows7.0
- Microsoft.Extensions.Configuration.Abstractions (>= 8.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.0)
- Microsoft.Extensions.Logging.Configuration (>= 8.0.0)
- Microsoft.Extensions.Options (>= 8.0.1)
- Microsoft.Xaml.Behaviors.Wpf (>= 1.1.77)
- Vectron.Ansi (>= 1.0.85)
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.