public static IWCloudBuilder AddLoggingAll(this IWCloudBuilder builder) { var nlog_config_file_path = builder.Services.GetHostingEnvironment().NLogConfigFilePath(); LoggingStartup.AddLoggingAll(builder, nlog_config_file_path); return(builder); }
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory, IServiceProvider serviceProvider, IncidentContext incidentContext) { LoggingStartup.AddLogging(env, loggerFactory, serviceProvider, _configuration); app.AddMiddleware(env, _configuration); AutoMapperStartup.InitializeAutomapper(); if (_env.IsDevelopment()) { SeedType seedType = _configuration["seedDataType"] == "manyEvents" ? SeedType.ManyEvents : SeedType.Basic; SeedData.Add(incidentContext, seedType); } }