I've enabled application logging to a blob for an app service on Azure.
- I can view the logs in the log stream from the Azure portal
- I can see that a file like
xxxxx-#####.applicationLog.csv
is being created each hour in the Azure storage account I created, but this file doesn't actually contain the my application logs - I tried enabling Web Server logging to storage on the same account, and that did work - I could see the logs for HTTP requests in a different file
- I tried creating a new storage account and pointing to it for the logs, but it didn't change anything
Configuration details:
- The app uses ASP.NET Core 2, running on .NET Framework 4.6.1
- I configure logging in
Program.cs
via:.ConfigureLogging(log => log.AddAzureWebAppDiagnostics())
(which is apparently necessary when running on .NET Framework instead of .NET Core runtime)
In summary: No files containing my application logs are created in Azure Storage when I configure it that way in the Azure portal.
ILogger<Type>
– Zout