Skip to content

Commit 3f0b9a6

Browse files
authored
Use the simpler defaults in examples.
1 parent 8651ec7 commit 3f0b9a6

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

samples/EarlyInitializationSample/Startup.cs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)