Handle request logging #2135
Answered
by
samsp-msft
ArchercodC
asked this question in
Q&A
-
Is it possible to prevent logging all parts of request, instead leaving only request finishing log that has info about execution time if I am using YARP Direct Proxy Example? If it`s possible will be appreciated to see solution |
Beta Was this translation helpful? Give feedback.
Answered by
samsp-msft
May 17, 2023
Replies: 1 comment
-
If you are doing direct forwarding, rather than using the pipeline, you have control over the timing of the beginning and end of the request, so turn of YARP logging (set its level to None) and log the message that you want? |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
samsp-msft
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you are doing direct forwarding, rather than using the pipeline, you have control over the timing of the beginning and end of the request, so turn of YARP logging (set its level to None) and log the message that you want?