I fixed the problem by adding the AzureWebAppDiagnostics Logging provider.
A few months ago this was not needed, so it seems the defaults have been changed at some time.
public static IHostBuilder CreateHostBuilder(string[] args) =>
Host.CreateDefaultBuilder(args)
.ConfigureLogging(logging =>
{
logging.AddAzureWebAppDiagnostics();
})
.ConfigureWebHostDefaults(webBuilder =>
{
webBuilder.UseStartup();
});
See https://learn.microsoft.com/en-us/aspnet/core/fundamentals/logging/?view=aspnetcore-3.1
Thanks for your reply. Local cache is currently not activated, we plan to activate it in the future though. But as far as I know the local cache should just delay the log stream and not deactivate it, right?
I guess scaling up and down will trigger a restart of the app service. We want to avoid restarts during the week whenever possible. I will try it on the weekend and keep you posted.
Try setting the log level to verbose to capture everything being outputted.
Thanks Jeremy, I tried that but unfortunately still no output.
Sign in to comment