Soenneker.HttpClients.LoggingHandler 4.0.212

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.HttpClients.LoggingHandler --version 4.0.212
                    
NuGet\Install-Package Soenneker.HttpClients.LoggingHandler -Version 4.0.212
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.HttpClients.LoggingHandler" Version="4.0.212" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.HttpClients.LoggingHandler" Version="4.0.212" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.HttpClients.LoggingHandler" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.HttpClients.LoggingHandler --version 4.0.212
                    
#r "nuget: Soenneker.HttpClients.LoggingHandler, 4.0.212"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.HttpClients.LoggingHandler@4.0.212
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.HttpClients.LoggingHandler&version=4.0.212
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.HttpClients.LoggingHandler&version=4.0.212
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

Soenneker.HttpClients.LoggingHandler

A delegating handler that logs HTTP request and response details, including headers and optionally bodies, for diagnostic and debugging purposes.

Install

dotnet add package Soenneker.HttpClients.LoggingHandler

What you get

  • HttpClientLoggingHandler — A delegating handler that logs HTTP request and response details, including headers and optionally bodies, for diagnostic and debugging purposes.
  • HttpClientLoggingOptions — Options for HttpClientLoggingHandler.

API at a glance

API What it does Result / important behavior
HttpClientLoggingOptions.MaxBodyLogLength Max number of characters to read from a body. Use a negative or int.MaxValue for “unlimited.”. Max number of characters to read from a body. Use a negative or int.MaxValue for “unlimited.”.
HttpClientLoggingOptions.RedactedHeaders Headers to redact (e.g. Authorization). Headers to redact (e.g. Authorization).
HttpClientLoggingOptions.LogRequestBody Gets or sets a value indicating whether log request body. Gets or sets a value indicating whether log request body.
HttpClientLoggingOptions.LogResponseBody Gets or sets a value indicating whether log response body. Gets or sets a value indicating whether log response body.
HttpClientLoggingOptions.LogRequestHeaders Gets or sets a value indicating whether log request headers. Gets or sets a value indicating whether log request headers.
HttpClientLoggingOptions.LogResponseHeaders Gets or sets a value indicating whether log response headers. Gets or sets a value indicating whether log response headers.
HttpClientLoggingOptions.LogLevel Minimum level for logging headers and status. Minimum level for logging headers and status.
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on Soenneker.HttpClients.LoggingHandler:

Package Downloads
Soenneker.GitHub.Client.Http

Provides a configured, cached HttpClient for GitHub's REST API.

Soenneker.Cloudflare.HttpClient

An async thread-safe HttpClient singleton for the Cloudflare API

Soenneker.Instantly.ClientUtil

Provides a lazily created Instantly generated client over a reusable authenticated transport

Soenneker.Telnyx.Client

Provide a cached HttpClient with Telnyx REST API authentication.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.222 859 9/5/2026
4.0.221 1,381 9/4/2026
4.0.220 2,345 9/4/2026
4.0.219 360 9/4/2026
4.0.218 17,537 8/31/2026
4.0.217 649 8/31/2026
4.0.216 683 8/31/2026
4.0.215 326 8/31/2026
4.0.214 4,110 8/30/2026
4.0.213 149 8/30/2026
4.0.212 320 8/30/2026
4.0.211 220 8/30/2026
4.0.210 1,735 8/29/2026
4.0.209 20,546 8/26/2026
4.0.208 333 8/25/2026
4.0.207 117 8/25/2026
4.0.206 5,201 8/22/2026
4.0.205 7,473 8/18/2026
4.0.204 10,964 8/13/2026
4.0.203 313 8/13/2026
Loading failed

Update dependency Soenneker.Extensions.Enumerable.String to 4.0.1422 (#504)