asp.net core – View application logs in azure
I have asp.net core 3.1 application. These are my settings for logging:
public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
WebHost.CreateDefaultBuilder(args)
.ConfigureLogging(logging =>
{
logging.AddAzureWebAppDiagnostics();
logging.AddConsole();
logging.AddDebug();
})
.UseStartup<Startup>();
And in code I use this _logger.LogInformation()
. I can see logs in console when I run the app locally, but the question is how I can see it on my app service on Azure Portal?
Read more here: Source link