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