Skip to content

vamcan/HttpClientToCurlLogger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

HttpClientToCurlLogger

A .NET Core library to log HttpClient requests as cURL commands. Automatically logs to the console when enabled.

Features

  • Enable/Disable Logging: Toggle cURL logging via configuration.
  • Automatic Registration: Works out-of-the-box with single or multiple HttpClient instances.
  • Development Focus: Ideal for debugging API requests during development.

Usage

public void ConfigureServices(IServiceCollection services)
{
    services.AddCurlLogging(options =>
    {
        options.EnableLogging = true; // Set to false to disable
    });

    // Register your HttpClient(s)
    services.AddHttpClient("MyClient");
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages