/HttpClientToFiddlerLogger

Log HttpClient requests to fiddler`s SAZ format

Primary LanguageC#MIT LicenseMIT

HttpClientToFiddlerLogger

Log HttpClient requests to fiddler`s SAZ format.

httpclienttofiddlerlogger MyGet Build Status

Example

static async Task ShortExample()
{
    using (var logger = new FiddlerLogger(new HttpClientHandler(), "logfileName.saz"))
    {
        var client = new HttpClient(logger);
        await client.GetAsync("example.com");
    }
}

Notice that FiddlerLogger object should be disposed or Saved() in order to actually save logs in file.