Thanks for posting your question in the Microsoft Q&A forum.
To troubleshoot this issue, consider the following steps:
- Verify that your application's log level is set to a level that will include the console logs (DEBUG, INFO,...). ensure that the log verbosity is set appropriately to capture the desired level of detail in the logs.
- Check your application's log configuration (log4j.properties, logback.xml) and ensure that the console appender is properly configured to log to the desired output.
- Confirm that the console logs are being written to the correct location specified in the Diagnostic settings
Create a simple Spring Boot application and deploy it to the Azure App Service. enable the Diagnostic settings and check if the console logs are being captured in the Log Analytics workspace. this will help you determine if the issue is specific to your application or a general configuration problem.
Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful