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