{"id":17267281,"url":"https://github.com/dosymep/serilog.sinks.autodesk.revit","last_synced_at":"2025-04-14T08:02:28.248Z","repository":{"id":172721290,"uuid":"647296087","full_name":"dosymep/Serilog.Sinks.Autodesk.Revit","owner":"dosymep","description":"The Autodesk Revit Journal sink for Serilog","archived":false,"fork":false,"pushed_at":"2024-05-21T09:36:20.000Z","size":39,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-04T17:17:01.402Z","etag":null,"topics":[],"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/dosymep.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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}},"created_at":"2023-05-30T13:28:10.000Z","updated_at":"2025-04-01T10:18:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"36dc5e3b-eecd-4136-8e5d-a1485513b612","html_url":"https://github.com/dosymep/Serilog.Sinks.Autodesk.Revit","commit_stats":null,"previous_names":["dosymep/serilog.sinks.autodesk.revit"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dosymep%2FSerilog.Sinks.Autodesk.Revit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dosymep%2FSerilog.Sinks.Autodesk.Revit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dosymep%2FSerilog.Sinks.Autodesk.Revit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dosymep%2FSerilog.Sinks.Autodesk.Revit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dosymep","download_url":"https://codeload.github.com/dosymep/Serilog.Sinks.Autodesk.Revit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248843828,"owners_count":21170488,"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":[],"created_at":"2024-10-15T08:10:16.116Z","updated_at":"2025-04-14T08:02:28.155Z","avatar_url":"https://github.com/dosymep.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Serilog.Sinks.Autodesk.Revit\n\n[![JetBrains Rider](https://img.shields.io/badge/JetBrains-Rider-blue.svg)](https://www.jetbrains.com/rider)\n[![License MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE.md)\n[![Revit 2017-2025](https://img.shields.io/badge/Revit-2017--2025-blue.svg)](https://www.autodesk.com/products/revit/overview)\n[![main](https://github.com/dosymep/Serilog.Sinks.Autodesk.Revit/actions/workflows/main.yml/badge.svg)](https://github.com/dosymep/Serilog.Sinks.Autodesk.Revit/actions/workflows/main.yml)\n\nWrites [Serilog](https://serilog.net) events to Autodesk Revit [Journal](https://www.revitapidocs.com/2022/97ec1eca-ab92-1cee-fdda-7bf3ce91c504.htm).\n\n### Getting started\n\nInstall the [Serilog.Sinks.Autodesk.Revit](https://www.nuget.org/packages/Serilog.Sinks.Autodesk.Revit/) package from NuGet:\n\n```powershell\nInstall-Package Serilog.Sinks.Autodesk.Revit\n```\n\nTo configure the sink in C# code, call `WriteTo.RevitJournal()` during logger configuration:\n\n```csharp\n// IExternalCommand.Execute\npublic Result Execute(ExternalCommandData commandData, \n                      out string message, \n                      ElementSet elements) {\n    UIApplication uiApplication = commandData.Application;\n    var log = new LoggerConfiguration()\n        .WriteTo.RevitJournal(uiApplication)\n        .CreateLogger();\n}\n```\n\n```csharp\n// IExternalApplication.Execute\npublic Result OnStartup(UIControlledApplication application) {\n    var log = new LoggerConfiguration()\n        .WriteTo.RevitJournal(application)\n        .CreateLogger();\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdosymep%2Fserilog.sinks.autodesk.revit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdosymep%2Fserilog.sinks.autodesk.revit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdosymep%2Fserilog.sinks.autodesk.revit/lists"}