0
votes

I have created a .net 2.1 core mvc and now ready to host it on Azure WebApp. I am yet to finalize logging.

https://stackify.com/azure-app-service-log-files/

I read above link and found the below snapshot to configure Application logging and Web Server logging. enter image description here

however in my WebApp all I can see is:

enter image description here

Is this due to my app service plan? How do I configure Application logging and Web server logging?

1
Is it on a Linux App Service Plan?nlawalker
Hi MahHem, try clicking on the Log Streams blade after that click on the Diagnostics logs blade. Do you see the web server logging option now?Grace MacJones - MSFT
marked answer @NancyXiongJemHah

1 Answers

1
votes

Yes, it's due to the app service plan. Just check the app on a basic Linux service plan on my side. It's the same as you. Once you click the Application Logging(filesystem) on, (This setting turns itself off after 12 hours), then save it and go back another page or refresh the current page, you will see the web server logging. Also, I found this UI always jumps to the previous page like you(without web server logging), after a while, you click another page, this will jump back.

enter image description here

Moreover, you could check the Log Stream to have the ability to see logging information in real-time (or as close to it as possible). Refer to the blog about Azure Tips and Tricks Part 30 - Working with Log Stream and Azure App Services.

It's likely a UI bug in the Azure portal. If you want to improve this, you could request feedback.