Closed viveknuna closed 1 year ago
I have added the APPLICATIONINSIGHTS_CONNECTION_STRING variable as well in my app service in azure. it's still not logging.
Try append SelfLog.Enable(Console.Error)
at the very beginning of the program to debug issues with configuration.
As per the responses on https://github.com/serilog/serilog/issues/1892, I would recommend re-asking this on stackoverflow - it's a good place to work through config issues like this (and you have most of the relevant inputs for such a question right here). Only very few random people follow sink repos on github (I don't follow this one, but got here looking for cross-posting).
This repository is not related to the Application Insights sink.
I am using 3.4.0 version of Serilog.Settings.Configuration.
below is my appsettings.json.
This is my Program.cs.
Below line is added in Startup.cs ConfigureServices method.
services.AddApplicationInsightsTelemetry();
My application has the below configuration.