File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
samples/InlineInitializationSample Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -32,14 +32,7 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
3232 // Write streamlined request completion events, instead of the more verbose ones from the framework.
3333 // To use the default framework request logging instead, remove this line and set the "Microsoft"
3434 // level in appsettings.json to "Information".
35- app . UseSerilogRequestLogging ( options =>
36- {
37- options . EnrichDiagnosticContext = ( diagnosticContext , httpContext ) =>
38- {
39- diagnosticContext . Set ( "RequestHost" , httpContext . Request . Host . Value ) ;
40- diagnosticContext . Set ( "RequestScheme" , httpContext . Request . Scheme ) ;
41- } ;
42- } ) ;
35+ app . UseSerilogRequestLogging ( ) ;
4336
4437 app . UseRouting ( ) ;
4538
You can’t perform that action at this time.
0 commit comments