diff --git a/Helloword_core/Startup.cs b/Helloword_core/Startup.cs index 6936db3..de00736 100644 --- a/Helloword_core/Startup.cs +++ b/Helloword_core/Startup.cs @@ -6,6 +6,7 @@ using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Logging; namespace Helloword_core { @@ -19,7 +20,7 @@ public void ConfigureServices(IServiceCollection services) } // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. - public void Configure(IApplicationBuilder app, IHostingEnvironment env) + public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILogger logger) { if (env.IsDevelopment()) { @@ -36,6 +37,7 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env) app.Run(async (context) => { + logger.LogInformation("Response Served."); await context.Response.WriteAsync("hello word"); }); }