Skip to content

Logging Original and Proxied Requests #397

Answered by Tratcher
app2eds asked this question in General
Discussion options

You must be logged in to vote

What fields do you expect to be logged? ASP.NET Core already logs these for the incoming request:

  • HTTP version
  • Method
  • Full uri
  • Content-type
  • Content-Length

And for responses:

  • Status code
  • Content-Length
  • Content-Type
  • Elapsed time

HttpProxy currently logs the absolute uri for the outgoing request.

Log.Proxying(_logger, targetUrl);

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@app2eds
Comment options

Answer selected by app2eds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants