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)
30
30
// Write streamlined request completion events, instead of the more verbose ones from the framework.
31
31
// To use the default framework request logging instead, remove this line and set the "Microsoft"
32
32
// 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 ( ) ;
41
34
42
35
app . UseRouting ( ) ;
43
36
You can’t perform that action at this time.
0 commit comments