Last post Jul 01, 2019 06:07 PM by thevlf
Jun 26, 2019 06:48 PM|thevlf|LINK
I am able to get my aspnet 2.2 application to log to blob storage in Azure with no issue,
but I also get a ton of logging from the framework that I would like to throttle/turn down.
At this time, my appsettings.json is simply deployed with the following:
In my Azure "App Service logs" settings, I have Application Logging (Blob) set to
My understanding is:
* The setting in App Service logs would allow events of Information and above to be shown
* The setting in the appsettings file would define that only events of Warning and above would be shown
* The setting in the appsettings would take precedent and therefore only Warning and above would be logged to the blob
Is my understanding correct?
Jun 27, 2019 08:27 AM|Xing Zou|LINK
Yes.Someone explains it clearly that :
When using Azure App Service Logging, the available log level would be the larger one between the level you set in your filtering rules and the application level your configured on Azure Portal. In order to capture information-level logs reported from your
assemblies, the Application Level you configured on Azure Portal need to less than or equal information-level, you could configure it to verbose or information.
Refer to Filtering logs in Azure Web App Diagnostics Logs
Jul 01, 2019 06:07 PM|thevlf|LINK
Thanks for point me to this link.
What ended up working for me is the following:
App Service Logs (Application Logging) set to Information.
My appsettings.json set to: