microsoft / kiota-python

Abstractions library for Kiota generated Python clients
https://aka.ms/kiota/docs
MIT License
16 stars 11 forks source link

Add HTTP Request and Response Logging #380

Open Jvr2022 opened 1 month ago

Jvr2022 commented 1 month ago

This PR introduces a new logging feature for HTTP requests and responses. It adds a new abstract logger interface in the abstractions package, implements it in the HTTP package, and integrates it with the HttpxRequestAdapter.

Changes:

  1. Add new abstract RequestResponseLogger class
  2. Implement HttpxRequestResponseLogger in HTTP package
  3. Integrate logger in HttpxRequestAdapter
  4. Add JSON formatting support for log messages
  5. Update relevant tests

Files changed:

sonarcloud[bot] commented 1 month ago

Quality Gate Failed Quality Gate failed

Failed conditions
E Reliability Rating on New Code (required ≥ A)

See analysis details on SonarCloud

Catch issues before they fail your Quality Gate with our IDE extension SonarLint

Jvr2022 commented 1 month ago

I will take a look

github-actions[bot] commented 2 weeks ago

This pull request has conflicting changes, the author must resolve the conflicts before this pull request can be merged.