private static void RegisterServices(Container container)
        {
            var appInsightsOptions = new AppInsightsOptions {
                LogLevel = (LogLevel)Enum.Parse(typeof(LogLevel), ConfigurationManager.AppSettings["LogLevel"]), InstrumentationKey = ConfigurationManager.AppSettings["InstrumentationKey"]
            };

            container.AddApplicationInsightsUsingSimpleInjector().AddAppInsightsLoggingOptions(appInsightsOptions);
        }
        private static void RegisterServices(Container container)
        {
            var config             = new ConfigurationBuilder().AddJsonFile("appsettings.json").Build();
            var appInsightsOptions = new AppInsightsOptions {
                LogLevel = (LogLevel)Enum.Parse(typeof(LogLevel), config.GetValue <string>("LogLevel")), InstrumentationKey = config.GetValue <string>("InstrumentationKey")
            };

            container.AddApplicationInsightsUsingSimpleInjector().AddAppInsightsLoggingOptions(appInsightsOptions);
        }