{"id":24083431,"url":"https://github.com/a-postx/delobytes.aspnetcore.logging","last_synced_at":"2026-07-22T02:33:39.265Z","repository":{"id":115848913,"uuid":"407069984","full_name":"a-postx/Delobytes.AspNetCore.Logging","owner":"a-postx","description":"Прослойки логирования для веб-апи приложений.","archived":false,"fork":false,"pushed_at":"2023-09-01T11:16:23.000Z","size":66,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-29T03:16:31.161Z","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/a-postx.png","metadata":{"files":{"readme":"README.en.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,"zenodo":null}},"created_at":"2021-09-16T07:40:10.000Z","updated_at":"2024-03-05T19:15:19.000Z","dependencies_parsed_at":"2025-06-03T10:31:22.518Z","dependency_job_id":"343f8b04-fa7d-4bc2-ad7f-838f59423031","html_url":"https://github.com/a-postx/Delobytes.AspNetCore.Logging","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/a-postx/Delobytes.AspNetCore.Logging","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-postx%2FDelobytes.AspNetCore.Logging","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-postx%2FDelobytes.AspNetCore.Logging/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-postx%2FDelobytes.AspNetCore.Logging/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-postx%2FDelobytes.AspNetCore.Logging/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/a-postx","download_url":"https://codeload.github.com/a-postx/Delobytes.AspNetCore.Logging/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-postx%2FDelobytes.AspNetCore.Logging/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279010249,"owners_count":26084718,"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-10-12T02:00:06.719Z","response_time":53,"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":[],"created_at":"2025-01-09T23:56:43.849Z","updated_at":"2025-10-12T04:10:14.087Z","avatar_url":"https://github.com/a-postx.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Delobytes.AspNetCore.Logging\nLogging middlewares for web-API apps.\n\n[RU](README.md), [EN](README.en.md)\n\n## NetworkLoggingMiddleware\nYou can use network logging middleware to add IP-address property to the logging context.\n\n**Usage**\n```csharp\npublic void Configure(IApplicationBuilder application)\n{\n    application.UseNetworkLogging();\n}\n```\n\n## ClaimsLoggingMiddleware\nYou can use network claims logging middleware to add user claims properties to the logging context.\n\n**Usage**\n```csharp\npublic void ConfigureServices(IServiceCollection services)\n{\n    //...\n    services.AddAuthenticationCore();\n    services.AddClaimsLogging(options =\u003e\n    {\n        options.ClaimNames = new [] { \"CustomClaimToLog\" };\n    });\n}\n\npublic void Configure(IApplicationBuilder application)\n{\n    application\n        .UseAuthentication()\n        .UseClaimsLogging();\n}\n```\n\n## HttpContextLoggingMiddleware\nYou can use HTTP context logging middleware to log detailed request and response properties in additional log messages.\n\n**Usage**\n```csharp\npublic void ConfigureServices(IServiceCollection services)\n{\n    //...\n    services.AddHttpContextLogging(options =\u003e\n    {\n        options.LogRequestBody = true;\n        options.LogResponseBody = true;\n        options.MaxBodyLength = 32759;\n        options.SkipPaths = new List\u003cPathString\u003e { \"/metrics\" };\n        options.SkipRequestHeaders = new List\u003cstring\u003e { \"Authorization\" };\n    });\n}\n\npublic void Configure(IApplicationBuilder application)\n{\n    application\n        .UseRouting()\n        .UseHttpContextLogging();\n}\n```\n\n## IdempotencyLoggingMiddleware\nYou can use idempotency logging middleware to add idempotency key header to the logging context.\n\n**Usage**\n```csharp\npublic void ConfigureServices(IServiceCollection services)\n{\n    //...\n    services.AddIdempotencyContextLogging(options =\u003e\n    {\n        options.IdempotencyLogAttribute = \"IdempotencyKey\";\n    });\n}\n\npublic void Configure(IApplicationBuilder application)\n{\n    application.UseIdempotencyContextLogging();\n}\n```\n\n## License\n[MIT](https://github.com/a-postx/Delobytes.AspNetCore.Logging/blob/master/LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa-postx%2Fdelobytes.aspnetcore.logging","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fa-postx%2Fdelobytes.aspnetcore.logging","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa-postx%2Fdelobytes.aspnetcore.logging/lists"}