CodeWF.Avalonia.Log 12.2.52

dotnet add package CodeWF.Avalonia.Log --version 12.2.52
                    
NuGet\Install-Package CodeWF.Avalonia.Log -Version 12.2.52
                    
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="CodeWF.Avalonia.Log" Version="12.2.52" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CodeWF.Avalonia.Log" Version="12.2.52" />
                    
Directory.Packages.props
<PackageReference Include="CodeWF.Avalonia.Log" />
                    
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 CodeWF.Avalonia.Log --version 12.2.52
                    
#r "nuget: CodeWF.Avalonia.Log, 12.2.52"
                    
#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 CodeWF.Avalonia.Log@12.2.52
                    
#: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=CodeWF.Avalonia.Log&version=12.2.52
                    
Install as a Cake Addin
#tool nuget:?package=CodeWF.Avalonia.Log&version=12.2.52
                    
Install as a Cake Tool

CodeWF.Avalonia.Log

面向 Avalonia 的日志查看控件与桌面通知:基于轻量日志核心展示实时日志、级别过滤与界面友好内容,适合桌面应用内嵌日志观察台。Avalonia log viewer control with desktop notifications on top of the lightweight logging core.

NuGet License

安装

dotnet add package CodeWF.Avalonia.Log
dotnet add package CodeWF.Toolkit.Logging

nuget.org 上并存现行 12.1.6.x 与已废弃的历史 12.2.x 两条版本线(后者版本号更大),浮动解析会命中旧线;请逐包精确钉版到 12.1.6.*。

本包不依赖 Semi.Avalonia,与宿主使用的主题体系无耦合。AOT 发布已验证(CI 冒烟覆盖)。

初始化与主题

应用启动时初始化日志核心(控制台 + 文件轮转 + UI 事件流):

Logger.TryInitialize(new LoggerOptions
{
    File = new FileLogOptions { DirectoryPath = logDirectory },
});

XAML 样式中加载主题入口,放置日志视图(控件订阅核心的 UI 日志事件流实时展示,支持级别过滤与检索):

<Application.Styles>
  <codewf:CodeWFLogTheme />
</Application.Styles>

<codewf:LogView LogDirectory="..." />

日志事件回调在后台线程,界面订阅方自行调度到 UI 线程。"打开日志目录"为跨平台内联实现(Windows 资源管理器 / Linux xdg-open / macOS open)。

桌面通知

LogNotifications 可将关键日志以系统通知形式弹出,详见完整文档。

本地化

右键菜单中英文 JSON 已内嵌程序集,跟随 CodeWF.Toolkit.Lang 当前语言,缺失文化回退英文;宿主在自身 I18n/ 放同名键(Log.View.Copy / Log.View.Clear / Log.View.Location)即可覆盖文案。

文档

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
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
12.2.52 88 11/21/2026
12.1.6.9 81 11/21/2026
12.1.6.8 81 11/20/2026
12.1.6.5 111 11/16/2026
12.1.6.4 95 11/12/2026
12.1.6.3 97 11/11/2026
12.1.6.2 103 11/10/2026
12.1.6.1 92 11/10/2026
12.1.5.11 95 11/10/2026
12.1.5.10 96 11/10/2026
12.1.5.9 95 11/10/2026
12.1.5.8 95 11/9/2026
12.1.5.7 97 11/9/2026
12.1.5.6 95 11/9/2026
12.1.5.4 96 11/8/2026
12.1.5.3 91 11/8/2026
12.1.5.2 129 11/8/2026
12.1.5.1 102 11/8/2026
Loading failed