![]() |
VOOZH | about |
dotnet add package AvalonLog --version 0.20.0
NuGet\Install-Package AvalonLog -Version 0.20.0
<PackageReference Include="AvalonLog" Version="0.20.0" />
<PackageVersion Include="AvalonLog" Version="0.20.0" />Directory.Packages.props
<PackageReference Include="AvalonLog" />Project file
paket add AvalonLog --version 0.20.0
#r "nuget: AvalonLog, 0.20.0"
#:package AvalonLog@0.20.0
#addin nuget:?package=AvalonLog&version=0.20.0Install as a Cake Addin
#tool nuget:?package=AvalonLog&version=0.20.0Install as a Cake Tool
👁 AvalonLog on nuget.org
👁 Build Status
👁 Docs Build Status
👁 Check NuGet
👁 Check dotnet tools
👁 code size
AvalonLog is a fast and thread-safe WPF text log viewer for colored text. Including F# printf formatting. Based on AvalonEditB. Works on .NET Framework 4.7.2 and .NET 7.0+
Thread-safe means that it can be called from any thread.
Fast means
it buffers repeated print calls and updates the view maximum 20 times per second. see source
Avalonedit is fast, the view is virtualized. It can easily handle thousands of lines.
Here an short example for F# interactive in .NET Framework. (for net9 you would have to use it in a project)
#r "PresentationCore"
#r "PresentationFramework"
#r "WindowsBase"
#r "nuget: AvalonLog"
open System.Windows
let log = new AvalonLog.AvalonLog() // The main class wrapping an Avalonedit TextEditor as append only log.
// create some printing functions by partial application:
let red = log.printfColor 255 0 0 // without newline
let blue = log.printfnColor 0 0 255 // with newline
let green = log.printfnColor 0 155 0 // with newline
// print to log using F# printf formatting
red "Hello, "
blue "World!"
red "The answer"
green " is %d." (40 + 2)
Application().Run(Window(Content=log)) // show WPF window
this will produce
public void AppendWithBrush(SolidColorBrush br, string s)
and similar functions on the AvalonLog instance.
When used from C# add a reference to FSharp.Core 6.0.7 or higher.
AvalonLog is available as NuGet package.
Just run dotnet build
see CHANGELOG.md
Logo by LovePik
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net7.0-windows7.0 net7.0-windows7.0 is compatible. net8.0-windows net8.0-windows was computed. net9.0-windows net9.0-windows was computed. net10.0-windows net10.0-windows was computed. |
| .NET Framework | net472 net472 is compatible. net48 net48 was computed. net481 net481 was computed. |
Showing the top 1 NuGet packages that depend on AvalonLog:
| Package | Downloads |
|---|---|
|
Fesh
A hostable fsharp scripting editor for Windows based on Avalonedit |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 0.20.0 | 3,760 | 3/19/2025 | |
| 0.19.0 | 385 | 3/18/2025 | |
| 0.18.0 | 605 | 2/15/2025 | |
| 0.17.0 | 1,028 | 11/18/2024 | |
| 0.16.0 | 332 | 11/6/2024 | |
| 0.15.8 | 288 | 11/3/2024 | |
| 0.15.0 | 260 | 11/3/2024 | |
| 0.14.0 | 345 | 9/11/2024 | |
| 0.13.0 | 295 | 6/10/2024 | |
| 0.12.0 | 459 | 10/29/2023 | |
| 0.11.0 | 305 | 9/10/2023 | |
| 0.10.0 | 323 | 7/27/2023 | |
| 0.9.3 | 324 | 5/29/2023 | |
| 0.9.2 | 433 | 5/29/2023 | 0.9.2 is deprecated. |
| 0.9.1 | 349 | 4/29/2023 | |
| 0.9.0 | 359 | 4/23/2023 | |
| 0.8.3 | 496 | 1/8/2023 | |
| 0.8.2 | 479 | 12/17/2022 | |
| 0.8.1 | 509 | 12/17/2022 |
### Changed
* - remove Microsoft.Extensions.Logging dependency and the ILogger interface implementation