A developer is troubleshooting an Azure App Service web app and notices that no application logs are appearing in the Log Stream tool of the Azure Portal, even though the application code contains standard logging statements. The developer has not configured any external storage or monitoring services. What is the most likely cause of this issue?
- Application logging to the file system is disabled in the Azure App Service configuration.Cevap
- BThe Application Insights SDK is initialized in the code but the connection string is missing.
- CThe web app is hosted on a Consumption plan which does not support diagnostic log streaming.
- DThe log messages exceed the 64 KB size limit per log entry.
Cevap
Application logging to the file system is disabled in the Azure App Service configuration.
Application logging to the file system is disabled by default in Azure App Service. To view real-time logs in the Log Stream tool, developers must explicitly enable application logging to the file system in the settings.
Adım Adım Çözüm
Anahtar Kavram
Enabling application logging to the filesystem is a prerequisite for using the built-in App Service Log Stream.