AvalonLog 0.20.0
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" />
<PackageReference Include="AvalonLog" />
paket add AvalonLog --version 0.20.0
#r "nuget: AvalonLog, 0.20.0"
#addin nuget:?package=AvalonLog&version=0.20.0
#tool nuget:?package=AvalonLog&version=0.20.0
AvalonLog
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.
Use with F#
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
Use in C#
public void AppendWithBrush(SolidColorBrush br, string s)
and similar functions on the AvalonLog
instance.
[!CAUTION] When used from C# add a reference to FSharp.Core 6.0.7 or higher.
Full API Documentation
Download
AvalonLog is available as NuGet package.
How to build
Just run dotnet build
Changelog
see CHANGELOG.md
License
Logo by LovePik
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0-windows7.0 is compatible. net8.0-windows was computed. net9.0-windows was computed. |
.NET Framework | net472 is compatible. net48 was computed. net481 was computed. |
-
.NETFramework 4.7.2
- AvalonEditB (>= 2.4.0)
-
net7.0-windows7.0
- AvalonEditB (>= 2.4.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on AvalonLog:
Package | Downloads |
---|---|
Fesh
A hostable fsharp scripting editor for Windows based on Avalonedit |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated | |
---|---|---|---|
0.20.0 | 274 | 23 days ago | |
0.19.0 | 178 | 23 days ago | |
0.18.0 | 398 | 2 months ago | |
0.17.0 | 832 | 5 months ago | |
0.16.0 | 173 | 5 months ago | |
0.15.8 | 124 | 5 months ago | |
0.15.0 | 110 | 5 months ago | |
0.14.0 | 185 | 7 months ago | |
0.13.0 | 136 | 6/10/2024 | |
0.12.0 | 357 | 10/29/2023 | |
0.11.0 | 173 | 9/10/2023 | |
0.10.0 | 202 | 7/27/2023 | |
0.9.3 | 189 | 5/29/2023 | |
0.9.2 | 198 | 5/29/2023 | |
0.9.1 | 205 | 4/29/2023 | |
0.9.0 | 214 | 4/23/2023 | |
0.8.3 | 350 | 1/8/2023 | |
0.8.2 | 336 | 12/17/2022 | |
0.8.1 | 355 | 12/17/2022 | |
0.7.1 | 480 | 8/6/2022 | |
0.7.0 | 473 | 3/26/2022 | |
0.6.0 | 10,923 | 1/11/2022 | |
0.5.0 | 330 | 12/11/2021 | |
0.4.0 | 361 | 10/19/2021 | |
0.3.1 | 370 | 9/27/2021 | |
0.3.0 | 382 | 8/23/2021 | |
0.2.0 | 365 | 8/22/2021 | |
0.1.0 | 413 | 8/21/2021 |
### Changed
* - remove Microsoft.Extensions.Logging dependency and the ILogger interface implementation