******@secful.com Thanks for posting your question in Microsoft Q&A. You can specify Number of payload bytes to log
to a value (up to 8192) other than 0 and this can be set individually for front end, and backend request/response. Check out doc: Diagnostics logs settings reference: API Management for more info.
However, the limit is for the initial bytes to log and not possible to avoid error log entirely. If you wish this feature, please submit feedback via https://aka.ms/apimwish and others with similar interests can upvote your idea. This will help our product team prioritize the features.
I hope this helps and let me know if any questions.
If you found the answer to your question helpful, please take a moment to mark it as Yes
for others to benefit from your experience. Or simply add a comment tagging me and would be happy to answer your questions.