Azure Function Information Logs not showing in App Insights

Sayed Reda 20 Reputation points
2024-03-26T15:06:44.3766667+00:00

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:

User's image

Here logs are shown in console:

User's image

But here information logs are not shown and no log level is assigned for warning nor error

User's image

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,265 questions
0 comments No comments
{count} votes

Accepted answer
  1. Ryan Hill 25,666 Reputation points Microsoft Employee
    2024-03-28T16:11:59.65+00:00

    @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

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. 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