{"id":13593667,"url":"https://github.com/olsh/resharper-structured-logging","last_synced_at":"2025-04-04T22:05:09.143Z","repository":{"id":35439539,"uuid":"174739537","full_name":"olsh/resharper-structured-logging","owner":"olsh","description":"An extension for ReSharper and Rider that highlights structured logging templates and contains some useful analyzers","archived":false,"fork":false,"pushed_at":"2025-02-01T05:30:43.000Z","size":889,"stargazers_count":144,"open_issues_count":9,"forks_count":14,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-28T21:04:32.430Z","etag":null,"topics":["analyzers","highlighting","jetbrains-plugins","nlog","resharper","rider","serilog","structured-logging"],"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/olsh.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2019-03-09T19:52:31.000Z","updated_at":"2025-03-11T18:10:03.000Z","dependencies_parsed_at":"2023-01-15T21:14:47.844Z","dependency_job_id":"b7ead3e0-85a2-4e8f-8a83-74cbd3a0a50f","html_url":"https://github.com/olsh/resharper-structured-logging","commit_stats":{"total_commits":139,"total_committers":10,"mean_commits":13.9,"dds":0.2517985611510791,"last_synced_commit":"debfbd016bf22e3a82fe9c1e335d33095efdd14b"},"previous_names":[],"tags_count":33,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olsh%2Fresharper-structured-logging","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olsh%2Fresharper-structured-logging/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olsh%2Fresharper-structured-logging/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olsh%2Fresharper-structured-logging/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/olsh","download_url":"https://codeload.github.com/olsh/resharper-structured-logging/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247256110,"owners_count":20909240,"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":["analyzers","highlighting","jetbrains-plugins","nlog","resharper","rider","serilog","structured-logging"],"created_at":"2024-08-01T16:01:22.912Z","updated_at":"2025-04-04T22:05:09.124Z","avatar_url":"https://github.com/olsh.png","language":"C#","readme":"# ReSharper Structured Logging\n[![Build status](https://ci.appveyor.com/api/projects/status/c4riih64hbd4sebw?svg=true)](https://ci.appveyor.com/project/olsh/resharper-structured-logging)\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=resharper-structured-logging\u0026metric=alert_status)](https://sonarcloud.io/dashboard?id=resharper-structured-logging)\n\nAn extension for ReSharper and Rider IDE that highlights structured logging templates and contains some useful analyzers\n\n\u003e [The highlighting is a built-in feature starting from R#/Rider 2021.2](https://github.com/olsh/resharper-structured-logging/issues/35#issuecomment-900883583), \n\u003e but the extension still contains some useful analyzers that are not (yet) implemented by JetBrains team\n\nAt the moment it supports Serilog, NLog, and Microsoft.Extensions.Logging\n\n## Installation ReSharper\n\nLook for `Structured Logging` in ReSharper -\u003e Extension manager.  \n[JetBrains Plugins Repository](https://plugins.jetbrains.com/plugin/12083-structured-logging)\n\n## Installation Rider\n\nLook for `Structured Logging` in Settings -\u003e Plugins -\u003e Browse repositories.  \n[JetBrains Plugins Repository](https://plugins.jetbrains.com/plugin/12832-structured-logging)\n\n## Highlighting\n\n![Highlighting](https://github.com/olsh/resharper-structured-logging/raw/master/images/highlighting.png)\n\n## Analyzers\n\n* [Anonymous object is not destructured](rules/AnonymousObjectDestructuringProblem.md)           \n* [Complex object is not destructured](rules/ComplexObjectDestructuringProblem.md)               \n* [Complex object is not destructured in context](rules/ComplexObjectInContextDestructuringProblem.md)               \n* [Contextual logger mismatch](rules/ContextualLoggerProblem.md)                                 \n* [Exception passed as a template argument](rules/ExceptionPassedAsTemplateArgumentProblem.md)   \n* [Duplicate properties in a template](rules/TemplateDuplicatePropertyProblem.md)                \n* [Template should be a compile-time constant](rules/TemplateIsNotCompileTimeConstantProblem.md) \n* [Prefer named properties instead of positional ones](rules/PositionalPropertyUsedProblem.md) \n* [Inconsistent log property naming](rules/InconsistentLogPropertyNaming.md) \n* [Inconsistent log property naming in context](rules/InconsistentContextLogPropertyNaming.md) \n* [Log event messages should be fragments, not sentences](rules/LogMessageIsSentenceProblem.md) \n\n## Turning Off Analyzers\n\nIndividual analyzers can be disabled as needed either through code comments or by adding a line to a project's\n`.editorconfig` file.\n\n### Turning Off Via Comments\n\nThe analyzer name can be used as-is in a ReSharper comment to disable an analyzer on a per-file or per-line basis.\nFor example:\n\n```csharp\n// ReSharper disable once TemplateIsNotCompileTimeConstantProblem\n```\n\n### Turning Off Via `.editorconfig`\n\nTo disable an analyzer for an entire directory, you can add a line to a `.editorconfig` file\n([learn more](https://editorconfig.org)). In this case, the analyzer name needs to be converted to `snake_case`, prefixed\nwith `resharper_` and suffixed with `_highlighting`. For example:\n\n```editorconfig\nresharper_template_is_not_compile_time_constant_problem_highlighting = none\n```\n\n## Credits\n\nInspired by [SerilogAnalyzer](https://github.com/Suchiman/SerilogAnalyzer)\n","funding_links":[],"categories":["C#","C\\#"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folsh%2Fresharper-structured-logging","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Folsh%2Fresharper-structured-logging","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folsh%2Fresharper-structured-logging/lists"}