I have an azure function app(v4), which is logging to App Insights.
The function app I have is n tier architecture, so it contains a function app project, domain and data layer.
The domain and data projects are .net 6 class libraries.
The logging seem to work fine with the function app project. There is instrumentation key setup in the Configuration tab in Azure Portal. I do not have any setup for app insights in the startup.cs file.
But the logging from the class libraries are not working. The class Library classes are injecting ILogger in the constructor to log the information/error. Is there any special setup needed for the logging to work?