@Haralambie Baciu It seems like you have already set the log level for the "Azure.Core" category to "Warning" in your appsettings.json file. However, you are still seeing logs with severity level "Information" from the "Azure.Core" category in Application Insights.
One possible reason for this could be that the log level for the "Azure.Core" category is being overridden somewhere else in your code. To ensure that the log level is set to "Warning" for the "Azure.Core" category throughout your application, you can add the following code in your Program.cs file:
using Microsoft.Extensions.Logging;
public static IHostBuilder CreateHostBuilder(string[] args) =>
Host.CreateDefaultBuilder(args)
.ConfigureLogging(logging =>
{
logging.ClearProviders();
logging.AddConsole();
logging.AddAzureWebAppDiagnostics();
logging.AddFilter("Azure.Core", LogLevel.Warning);
})
.ConfigureWebHostDefaults(webBuilder =>
{
webBuilder.UseStartup();
});
This code clears all the existing logging providers, adds the console logging provider, adds the Azure Web App Diagnostics logging provider, and sets the log level for the "Azure.Core" category to "Warning".
Please note that this code assumes that you are using the default host builder in your application. If you have a custom host builder, you can modify the code accordingly.