{"id":19548534,"url":"https://github.com/goswinr/avalonlog","last_synced_at":"2025-04-26T19:33:04.060Z","repository":{"id":65560481,"uuid":"356275786","full_name":"goswinr/AvalonLog","owner":"goswinr","description":"A thread-safe and colorful text viewer based on AvalonEdit","archived":false,"fork":false,"pushed_at":"2025-04-24T05:48:57.000Z","size":385,"stargazers_count":9,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-24T06:32:15.041Z","etag":null,"topics":["avalonedit","console","fsharp","logging","wpf"],"latest_commit_sha":null,"homepage":"https://goswinr.github.io/AvalonLog/","language":"F#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/goswinr.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-04-09T13:11:54.000Z","updated_at":"2025-04-24T05:49:01.000Z","dependencies_parsed_at":"2024-01-07T02:12:18.384Z","dependency_job_id":"fe3ba0f0-4afe-4a74-b960-30592f5d835c","html_url":"https://github.com/goswinr/AvalonLog","commit_stats":null,"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goswinr%2FAvalonLog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goswinr%2FAvalonLog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goswinr%2FAvalonLog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goswinr%2FAvalonLog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/goswinr","download_url":"https://codeload.github.com/goswinr/AvalonLog/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251041757,"owners_count":21527247,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["avalonedit","console","fsharp","logging","wpf"],"created_at":"2024-11-11T03:56:07.572Z","updated_at":"2025-04-26T19:33:04.053Z","avatar_url":"https://github.com/goswinr.png","language":"F#","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Logo](https://raw.githubusercontent.com/goswinr/AvalonLog/main/Docs/img/logo128.png)\n# AvalonLog\n\n[![AvalonLog on nuget.org](https://img.shields.io/nuget/v/AvalonLog)](https://www.nuget.org/packages/AvalonLog/)\n[![Build Status](https://github.com/goswinr/AvalonLog/actions/workflows/build.yml/badge.svg)](https://github.com/goswinr/AvalonLog/actions/workflows/build.yml)\n[![Docs Build Status](https://github.com/goswinr/AvalonLog/actions/workflows/docs.yml/badge.svg)](https://github.com/goswinr/AvalonLog/actions/workflows/docs.yml)\n[![Check NuGet](https://github.com/goswinr/AvalonLog/actions/workflows/outdatedNuget.yml/badge.svg)](https://github.com/goswinr/AvalonLog/actions/workflows/outdatedNuget.yml)\n[![Check dotnet tools](https://github.com/goswinr/AvalonLog/actions/workflows/outdatedDotnetTool.yml/badge.svg)](https://github.com/goswinr/AvalonLog/actions/workflows/outdatedDotnetTool.yml)\n[![license](https://img.shields.io/github/license/goswinr/AvalonLog)](LICENSE.md)\n![code size](https://img.shields.io/github/languages/code-size/goswinr/AvalonLog.svg)\n\nAvalonLog is a fast and thread-safe WPF text log viewer for colored text. Including F# `printf` formatting. Based on [AvalonEditB](https://github.com/goswinr/AvalonEditB). Works on .NET Framework 4.7.2 and .NET 7.0+\n\nThread-safe means that it can be called from any thread.\n\nFast means\n\n- it buffers repeated print calls and updates the view maximum 20 times per second. see [source](https://github.com/goswinr/AvalonLog/blob/main/Src/AvalonLog.fs#L222)\n\n- Avalonedit is fast, the view is virtualized. It can easily handle thousands of lines.\n\n### Use with F#\n\nHere an short example for F# interactive in .NET Framework.\n(for net9 you would have to use it in a project)\n\n```fsharp\n#r \"PresentationCore\"\n#r \"PresentationFramework\"\n#r \"WindowsBase\"\n\n#r \"nuget: AvalonLog\"\n\nopen System.Windows\n\nlet log = new AvalonLog.AvalonLog() // The main class wrapping an Avalonedit TextEditor as append only log.\n\n// create some printing functions by partial application:\nlet red   = log.printfColor 255 0 0  // without newline\nlet blue  = log.printfnColor 0 0 255 // with newline\nlet green = log.printfnColor 0 155 0 // with newline\n\n// print to log using F# printf formatting\nred   \"Hello, \"\nblue  \"World!\"\nred   \"The answer\"\ngreen \" is %d.\" (40 + 2)\n\nApplication().Run(Window(Content=log))  // show WPF window\n```\nthis will produce\n\n![WPF window](https://raw.githubusercontent.com/goswinr/AvalonLog/main/Docs/img/HelloWorld.png)\n\n### Use in C#\n\n```csharp\npublic void AppendWithBrush(SolidColorBrush br, string s)\n```\nand similar functions on the `AvalonLog` instance.\n\n\u003e [!CAUTION]\n\u003e When used from C# add a reference to FSharp.Core 6.0.7 or higher.\n\n\n### Full API Documentation\n\n[goswinr.github.io/AvalonLog](https://goswinr.github.io/AvalonLog/reference/avalonlog.html)\n\n### Download\n\nAvalonLog is available as [NuGet package](https://www.nuget.org/packages/AvalonLog).\n\n### How to build\n\nJust run `dotnet build`\n\n### Changelog\nsee [CHANGELOG.md](https://github.com/goswinr/AvalonLog/blob/main/CHANGELOG.md)\n\n### License\n\n[MIT](https://github.com/goswinr/AvalonLog/blob/main/LICENSE.md)\n\nLogo by [LovePik](https://lovepik.com/image-401268798/crystal-parrot-side-cartoon.html)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoswinr%2Favalonlog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoswinr%2Favalonlog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoswinr%2Favalonlog/lists"}