File tree Expand file tree Collapse file tree
Dotnet6.GraphQL4.Store.WebAPI
Dotnet6.GraphQL4.Store.WebMVC Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717using Microsoft . Extensions . DependencyInjection ;
1818using Microsoft . Extensions . Diagnostics . HealthChecks ;
1919using Microsoft . Extensions . Hosting ;
20+ using Serilog ;
2021
2122namespace Dotnet6 . GraphQL4 . Store . WebAPI
2223{
@@ -37,6 +38,8 @@ public void Configure(IApplicationBuilder app)
3738 {
3839 if ( _env . IsDevelopment ( ) )
3940 app . UseDeveloperExceptionPage ( ) ;
41+
42+ app . UseSerilogRequestLogging ( ) ;
4043
4144 app . UseApplicationGraphQL < StoreSchema > ( ) ;
4245
Original file line number Diff line number Diff line change 1212using Microsoft . Extensions . DependencyInjection ;
1313using Microsoft . Extensions . Diagnostics . HealthChecks ;
1414using Microsoft . Extensions . Hosting ;
15+ using Serilog ;
1516
1617namespace Dotnet6 . GraphQL4 . Store . WebMVC
1718{
@@ -41,6 +42,7 @@ public void Configure(IApplicationBuilder app)
4142 }
4243
4344 app . UseStaticFiles ( ) ;
45+ app . UseSerilogRequestLogging ( ) ;
4446 app . UseRouting ( ) ;
4547
4648 app . UseEndpoints ( endpoints =>
You can’t perform that action at this time.
0 commit comments