/// <summary> /// Configure serilog for application insights /// </summary> /// <param name="context"></param> /// <param name="configuration"></param> public static void ApplicationInsights(WebHostBuilderContext context, LoggerConfiguration configuration) { configuration.ApplicationInsights(context.Configuration, new ApplicationInsightsConfig(null)) .MinimumLevel.Override("Microsoft", LogEventLevel.Information); }