{"id":22800965,"url":"https://github.com/dailydevops/logging.measurement","last_synced_at":"2026-02-26T15:39:23.650Z","repository":{"id":240207283,"uuid":"799099815","full_name":"dailydevops/logging.measurement","owner":"dailydevops","description":"Extensions for `ILogger` implementations to measure execution times for a named scope.","archived":false,"fork":false,"pushed_at":"2026-02-25T15:03:55.000Z","size":606,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2026-02-25T19:20:09.564Z","etag":null,"topics":["dotnet","logger"],"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/dailydevops.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null},"funding":{"github":["dailydevops"]}},"created_at":"2024-05-11T07:18:58.000Z","updated_at":"2026-02-25T11:54:29.000Z","dependencies_parsed_at":"2024-05-29T20:35:36.905Z","dependency_job_id":"5a96eafc-e2e3-4e63-a721-48cecefe7073","html_url":"https://github.com/dailydevops/logging.measurement","commit_stats":null,"previous_names":["dailydevops/logging.measurement","dailydevops/extensions.logging.measurement"],"tags_count":6,"template":false,"template_full_name":"dailydevops/template-dotnet","purl":"pkg:github/dailydevops/logging.measurement","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dailydevops%2Flogging.measurement","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dailydevops%2Flogging.measurement/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dailydevops%2Flogging.measurement/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dailydevops%2Flogging.measurement/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dailydevops","download_url":"https://codeload.github.com/dailydevops/logging.measurement/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dailydevops%2Flogging.measurement/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29863607,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T08:51:08.701Z","status":"ssl_error","status_checked_at":"2026-02-26T08:50:19.607Z","response_time":89,"last_error":"SSL_read: 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":["dotnet","logger"],"created_at":"2024-12-12T08:08:32.390Z","updated_at":"2026-02-26T15:39:23.645Z","avatar_url":"https://github.com/dailydevops.png","language":"C#","readme":"# NetEvolve.Logging.Measurement\n\n[![NuGet](https://img.shields.io/nuget/v/NetEvolve.Logging.Measurement.svg)](https://www.nuget.org/packages/NetEvolve.Logging.Measurement/)\n[![NuGet Downloads](https://img.shields.io/nuget/dt/NetEvolve.Logging.Measurement.svg)](https://www.nuget.org/packages/NetEvolve.Logging.Measurement/)\n[![License](https://img.shields.io/github/license/dailydevops/logging.measurement)](LICENSE)\n\nA lightweight extension library for [Microsoft.Extensions.Logging](https://learn.microsoft.com/aspnet/core/fundamentals/logging/) that enables simple and efficient time measurement of code blocks with automatic logging.\n\n## Features\n\n- ⏱️ **Simple Time Measurement** - Measure execution time of code blocks using intuitive `using` statements\n- 📊 **Configurable Log Levels** - Control log output granularity with customizable completion levels\n- 🔍 **Debug Information** - Optional caller information (member name, file path, line number) for detailed diagnostics\n- 🎯 **Zero Overhead** - Minimal performance impact with efficient measurement implementation\n- 🔧 **Flexible Integration** - Seamlessly integrates with existing `ILogger` implementations\n\n## Installation\n\n```bash\ndotnet add package NetEvolve.Logging.Measurement\n```\n\n## Quick Start\n\n```csharp\nusing Microsoft.Extensions.Logging;\nusing NetEvolve.Logging.Measurement;\n\npublic sealed class Example\n{\n    private readonly ILogger\u003cExample\u003e _logger;\n\n    public Example(ILogger\u003cExample\u003e logger)\n    {\n        _logger = logger;\n    }\n\n    public void ProcessData()\n    {\n        using (_logger.StartMeasurement(\"Data Processing\"))\n        {\n            // Your code here\n            // Execution time will be logged automatically when the scope is disposed\n        }\n    }\n}\n```\n\n## Documentation\n\nFor detailed usage examples and advanced scenarios, see the [package documentation](src/NetEvolve.Logging.Measurement/README.md).\n\n## Requirements\n\n- .NET 8.0 or later\n- Microsoft.Extensions.Logging.Abstractions 10.0.0 or compatible version\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.","funding_links":["https://github.com/sponsors/dailydevops"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdailydevops%2Flogging.measurement","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdailydevops%2Flogging.measurement","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdailydevops%2Flogging.measurement/lists"}