I have enabled logging in my web app running on azure web services, I can see the log output if I enable log streaming but I cannot find any GUI where I can find the logs so where are they?
I have defined my logging as follows in program.cs
WebHost.CreateDefaultBuilder(args)
.UseApplicationInsights()
.ConfigureLogging((hostingContext, logging) =>
{
logging.AddConfiguration(hostingContext.Configuration.GetSection("Logging"));
logging.AddConsole();
logging.AddDebug();
logging.AddEventSourceLogger();
logging.AddApplicationInsights();
})
.UseStartup<Startup>();
And in my API controller I am simply doing this
private readonly ILogger _logger;
public ReveController(ILogger<Controller> logger)
{
_logger = logger;
}
Followed by
_logger.LogInformation("Test test test");
My logging settings in appsettings.json looks as follows
"Logging": {
"LogLevel": {
"Default": "Warning"
}
},
I looked on the app service and in App Insights but nowhere in the GUI can I find the entries where are they?
Am I missing something?