{"id":22345944,"url":"https://github.com/johnkors/minimalhttplogger","last_synced_at":"2025-09-03T15:34:33.771Z","repository":{"id":65505411,"uuid":"436189731","full_name":"johnkors/MinimalHttpLogger","owner":"johnkors","description":"Reduces no. of HttpClient log statements from 4 to 1 pr request (Microsoft.Extensions.Http)","archived":false,"fork":false,"pushed_at":"2025-02-16T19:11:22.000Z","size":70,"stargazers_count":14,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-26T12:58:55.989Z","etag":null,"topics":["dotnet","dotnet-core","extensions","httpclient","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/johnkors.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"johnkors","patreon":"johnkors"}},"created_at":"2021-12-08T09:30:52.000Z","updated_at":"2025-02-16T19:10:25.000Z","dependencies_parsed_at":"2023-01-26T14:01:30.116Z","dependency_job_id":null,"html_url":"https://github.com/johnkors/MinimalHttpLogger","commit_stats":null,"previous_names":["johnkors/minimalhttplogging"],"tags_count":7,"template":false,"template_full_name":"johnkors/dotnet-library","purl":"pkg:github/johnkors/MinimalHttpLogger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnkors%2FMinimalHttpLogger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnkors%2FMinimalHttpLogger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnkors%2FMinimalHttpLogger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnkors%2FMinimalHttpLogger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johnkors","download_url":"https://codeload.github.com/johnkors/MinimalHttpLogger/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnkors%2FMinimalHttpLogger/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267803984,"owners_count":24146527,"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","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","dotnet-core","extensions","httpclient","logging"],"created_at":"2024-12-04T09:19:19.125Z","updated_at":"2025-07-30T03:32:32.089Z","avatar_url":"https://github.com/johnkors.png","language":"C#","funding_links":["https://github.com/sponsors/johnkors","https://patreon.com/johnkors"],"categories":[],"sub_categories":[],"readme":"# MinimalHttpLogger\n\n[![Build](https://github.com/johnkors/MinimalHttpLogger/workflows/CI/badge.svg)](https://github.com/johnkors/MinimalHttpLogger/actions)\n[![NuGet](https://img.shields.io/nuget/v/MinimalHttpLogger.svg)](https://www.nuget.org/packages/MinimalHttpLogger/)\n[![NuGet](https://img.shields.io/nuget/dt/MinimalHttpLogger.svg)](https://www.nuget.org/packages/MinimalHttpLogger/)\n\n## Why?\n\nMy logs were\n\n* hard to read\n* filling up space(*)\n\n## What is this?\n\nIt's not possible to configure the log pattern of the Microsoft.Extensions.Http based HttpClient loggers. To modify, one\nhas to replace them. This package replaces the default loggers with a logger that:\n\n1. Reduces the number of log statements on httpclient requests from 4 to 1\n2. Logs 1 aggregated log statement: `{Method} {Uri} - {StatusCode} {StatusCodeLiteral} in {Time}ms`\n\n### Change in output\n\nBefore:\n\n```log\ninfo: Start processing HTTP request GET https://www.google.com/\ninfo: Sending HTTP request GET https://www.google.com/\ninfo: Received HTTP response headers after 188.6041ms - 200\ninfo: End processing HTTP request after 188.8026ms - 200\n```\n\nAfter:\n\n```log\ninfo: GET https://www.google.com/ - 200 OK in 186.4883ms\n```\n\n## Install\n\n```sh\n$ dotnet add package MinimalHttpLogger\n```\n\n## Usage\n\n```csharp\nservices.UseMinimalHttpLogger();\n```\n\n---\n\n(*) I'm cheap. My Papertrail account stops logging when reaching a certain szie, so reducing the log helps\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnkors%2Fminimalhttplogger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnkors%2Fminimalhttplogger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnkors%2Fminimalhttplogger/lists"}