@Sayed Reda, CORRECTION on my part. Isolated worker model has a different logging configuration. Check out Guide for running C# Azure Functions in an isolated worker process | Microsoft Learn
Azure Function Information Logs not showing in App Insights
After migrating to Isolated process azure function, information logs stopped to be shown in application insights only Warning and Error logs are stored without even log level.
Here is a sample code:
Here logs are shown in console:
But here information logs are not shown and no log level is assigned for warning nor error
-
Ryan Hill 25,666 Reputation points Microsoft Employee
2024-03-28T16:11:59.65+00:00
1 additional answer
Sort by: Most helpful
-
hossein jalilian 2,535 Reputation points
2024-03-27T00:58:37.1666667+00:00 Thanks for posting your question in the Microsoft Q&A forum.
Verify the log level configuration in your logging framework. Ensure that the log level is appropriately set to capture Information logs. For example, in Serilog, you can set the minimum log level using
MinimumLevel.Debug()
.Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful