AvalonLog 0.15.8
See the version list below for details.
dotnet add package AvalonLog --version 0.15.8
NuGet\Install-Package AvalonLog -Version 0.15.8
<PackageReference Include="AvalonLog" Version="0.15.8" />
paket add AvalonLog --version 0.15.8
#r "nuget: AvalonLog, 0.15.8"
// Install AvalonLog as a Cake Addin #addin nuget:?package=AvalonLog&version=0.15.8 // Install AvalonLog as a Cake Tool #tool nuget:?package=AvalonLog&version=0.15.8
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 6.0
Thread-safe means that it can be called from any thread.
Fast means
- it buffers repeated print calls and updates the view maximum 10 times per second. see
- Avalonedit is fast, the view is virtualized. It can easily handle thousands of lines.
Usage
Here an short example for F# interactive in .NET Framework. (for net7.0 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
For C# there is
public void AppendWithBrush(SolidColorBrush br, string s)
and similar functions on the AvalonLog
instance.
Documentation
See extracted API at fuget.org
Download
AvalonLog is available as NuGet package.
How to build
Just run dotnet build
License
MIT
Logo by LovePik
Changelog
0.16.0
- upgrade to FSharp.Core 8.0.400 to make it work for Fesh.Revit
0.15.0
- add Pen Utils, faster redraw, expose delay time
0.14.0
- AvalonEditB 2.4.0
0.13.0
- AvalonEditB 2.3.0
0.12.0
- AvalonEditB 2.2.0
0.11.0
- disable replace in Log
- AvalonEditB 2.1.0
0.10.0
- AvalonEditB 2.0.0
0.9.1
- AvalonEditB 1.8.0
0.9.0
- AvalonEditB 1.7.0
0.8.3
- AvalonEditB 1.6.0
0.8.2
- net7.0
- AvalonEditB 1.5.1
- update readme, fix typos
0.7.2
- fix typos in readme
0.7.1
- use AvalonEditB
1.4.1
- fix typos in doc-strings
0.7.0
- fix crash when Log has more than 1000k characters
0.6.0
- fix ConditionalTextWriter
0.5.0
- Update to AvalonEditB
1.3.0
- target net6.0 and net472
- fix typos in docstring
0.4.0
- Update to AvalonEditB
1.2.0
- Rename
GetTextWriterIf
toGetConditionalTextWriter
0.3.1
- Update Xml doc-strings
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0-windows7.0 is compatible. net8.0-windows was computed. |
.NET Framework | net472 is compatible. net48 was computed. net481 was computed. |
-
.NETFramework 4.7.2
- AvalonEditB (>= 2.4.0)
- FSharp.Core (>= 8.0.400)
-
net7.0-windows7.0
- AvalonEditB (>= 2.4.0)
- FSharp.Core (>= 8.0.400)
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.17.0 | 258 | 11/18/2024 | |
0.16.0 | 155 | 11/6/2024 | |
0.15.8 | 107 | 11/3/2024 | |
0.15.0 | 91 | 11/3/2024 | |
0.14.0 | 169 | 9/11/2024 | |
0.13.0 | 127 | 6/10/2024 | |
0.12.0 | 350 | 10/29/2023 | |
0.11.0 | 169 | 9/10/2023 | |
0.10.0 | 196 | 7/27/2023 | |
0.9.3 | 180 | 5/29/2023 | |
0.9.2 | 181 | 5/29/2023 | |
0.9.1 | 195 | 4/29/2023 | |
0.9.0 | 204 | 4/23/2023 | |
0.8.3 | 338 | 1/8/2023 | |
0.8.2 | 324 | 12/17/2022 | |
0.8.1 | 344 | 12/17/2022 | |
0.7.1 | 461 | 8/6/2022 | |
0.7.0 | 454 | 3/26/2022 | |
0.6.0 | 9,405 | 1/11/2022 | |
0.5.0 | 305 | 12/11/2021 | |
0.4.0 | 341 | 10/19/2021 | |
0.3.1 | 350 | 9/27/2021 | |
0.3.0 | 363 | 8/23/2021 | |
0.2.0 | 344 | 8/22/2021 | |
0.1.0 | 393 | 8/21/2021 |
- FSharp.Core 8.0.400