{"id":25404898,"url":"https://github.com/urskroell/userlognet","last_synced_at":"2026-02-19T17:02:19.959Z","repository":{"id":277734401,"uuid":"933333877","full_name":"UrsKroell/UserLogNET","owner":"UrsKroell","description":"A dotnet SDK for UserLog","archived":false,"fork":false,"pushed_at":"2025-02-15T18:47:27.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-17T05:02:32.575Z","etag":null,"topics":["csharp","dotnet","nuget-package","sdk-dotnet","sdk-net","userlog"],"latest_commit_sha":null,"homepage":"","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/UrsKroell.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2025-02-15T17:52:35.000Z","updated_at":"2025-02-15T18:47:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"719cbbd1-b68a-4aba-9a35-103210e733ed","html_url":"https://github.com/UrsKroell/UserLogNET","commit_stats":null,"previous_names":["urskroell/userlognet"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/UrsKroell/UserLogNET","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UrsKroell%2FUserLogNET","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UrsKroell%2FUserLogNET/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UrsKroell%2FUserLogNET/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UrsKroell%2FUserLogNET/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/UrsKroell","download_url":"https://codeload.github.com/UrsKroell/UserLogNET/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UrsKroell%2FUserLogNET/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29623546,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T13:04:20.082Z","status":"ssl_error","status_checked_at":"2026-02-19T13:03:33.775Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","dotnet","nuget-package","sdk-dotnet","sdk-net","userlog"],"created_at":"2025-02-16T04:25:02.590Z","updated_at":"2026-02-19T17:02:14.950Z","avatar_url":"https://github.com/UrsKroell.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UserLogNET \n### a UserLog SDK for dotnet\n\n![NuGet Version](https://img.shields.io/nuget/v/UserLogNet?style=for-the-badge)\n\n-----\n\nWebsite: https://getuserlog.com/\n\nDocs: https://docs.getuserlog.com/\n\n## Installation\n\n```sh\ndotnet add package UserLogNET\n```\n\n## Usage\n\n### Add client to dependency injection\n\n```csharp\nusing UserLogNET.Extensions;\n\nvar builder = WebApplication.CreateBuilder(args);\n\nbuilder.Services.AddUserLog(\"api-key\", \"project-name\");\n```\n\nThe project name will be auto-injected in all requests.\n\n### Log\n\n```csharp\nusing UserLogNET;\nusing UserLogNET.Client;\n\n// Inject UserLogClient into service\npublic GenericController(IUserLogClient userLogClient)\n{\n    _userLogClient = userLogClient;\n}\n\npublic async Task\u003cbool\u003e Get()\n{\n    // Create a new UserLogEvent\n    var newLogEvent = new UserLogEvent()\n    {\n        Channel = \"payments\",                           // Required\n        Event = \"New Subscription\",                     // Required\n        Notify = true,                                  // Required\n        \n        Description = \"A new subscription was created\", // optional\n        UserId = \"user@example.local\",                  // optional\n        Icon = \"💰\"                                     // optional (needs to be an emoji)\n    };\n    \n    // Add Tags (optional)\n    newLogEvent.AddTags(\n        (\"plan\", \"hello\"),       // supports string\n        (\"cycle\", \"monthly\"),    \n        (\"mrr\", 19.95),          // numbers\n        (\"trial\", true)          // and bool\n    );\n    \n    // push the LogEvent to be tracked\n    return await _userLogClient.Track(newLogEvent);\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Furskroell%2Fuserlognet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Furskroell%2Fuserlognet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Furskroell%2Fuserlognet/lists"}