To enable or disable Diagnostic logs, we need to go to Azure App Services in the Azure portal, click on the MyPetClinic Azure web application, and in the MONITORING section, click on Diagnostic logs:
We can enable or disable different kinds of logs based on the need and environment:
Once changes are done, click on the Save button.