{"id":23041098,"url":"https://github.com/u1035/lightlog","last_synced_at":"2025-04-03T00:29:12.754Z","repository":{"id":116358328,"uuid":"262529561","full_name":"u1035/LightLog","owner":"u1035","description":"Lightweight application log library","archived":false,"fork":false,"pushed_at":"2020-06-24T08:26:15.000Z","size":48,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-08T14:45:03.986Z","etag":null,"topics":["csharp","logger","logging","logging-library","netstandard20"],"latest_commit_sha":null,"homepage":null,"language":"C#","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/u1035.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2020-05-09T08:54:30.000Z","updated_at":"2020-06-24T08:26:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"a63d8489-66fe-48ff-a757-4e93ec55ffba","html_url":"https://github.com/u1035/LightLog","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/u1035%2FLightLog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/u1035%2FLightLog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/u1035%2FLightLog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/u1035%2FLightLog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/u1035","download_url":"https://codeload.github.com/u1035/LightLog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246916417,"owners_count":20854509,"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":["csharp","logger","logging","logging-library","netstandard20"],"created_at":"2024-12-15T19:29:15.562Z","updated_at":"2025-04-03T00:29:12.728Z","avatar_url":"https://github.com/u1035.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/u1035/LightLog.svg?branch=master)](https://travis-ci.org/u1035/LightLog)\n[![Nuget (with prereleases)](https://img.shields.io/nuget/vpre/LightLog)](https://www.nuget.org/packages/LightLog)\n[![Nuget](https://img.shields.io/nuget/dt/LightLog)](https://www.nuget.org/packages/LightLog)\n![GitHub](https://img.shields.io/github/license/u1035/LightLog)\n\n# LightLog\nLightweight application log library\n\n(under slow lazy development)\n\nInspired by NLog, but I wanted to create simple solution by myself.\n\nYou can put a line in your ViewModel:\n```csharp\npublic Logger Logger { get; } = LogManager.Instance;\n```\nand bind to collection of log records in XAML with something like this:\n```xaml\n\u003cListView Grid.Row=\"2\" ItemsSource=\"{Binding Logger.LogRecords}\"\u003e\n    \u003cListView.ItemTemplate\u003e\n        \u003cDataTemplate\u003e\n            \u003cStackPanel Orientation=\"Horizontal\"\u003e\n                \u003cTextBlock Margin=\"4 0 0 0\" Text=\"{Binding Time}\"/\u003e\n                \u003cTextBlock Margin=\"4 0 0 0\" Text=\"{Binding Level}\"/\u003e\n                \u003cTextBlock Margin=\"4 0 0 0\" Text=\"{Binding CallerMemberName}\"/\u003e\n                \u003cTextBlock Margin=\"4 0 0 0\" Text=\"{Binding Message}\"/\u003e\n            \u003c/StackPanel\u003e\n        \u003c/DataTemplate\u003e\n    \u003c/ListView.ItemTemplate\u003e\n\u003c/ListView\u003e\n```\nUserControl for displaying log records will appear in next versions.\n\nIn code you can use logger like this:\n```csharp\nLogger.Debug(\"Program started\"); \n```\n\nand get the following line in your log file:\n\n```\n2020-05-23T22:41:22.5116388+03:00||PrintInfo|MainViewModel.cs|17|Debug|Program started\n```\nWhere you will find time of event, name of function, source file name and line, severity of the message, and your message.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fu1035%2Flightlog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fu1035%2Flightlog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fu1035%2Flightlog/lists"}