Skip to content

Commit 90587d1

Browse files
authored
Use simpler defaults in examples.
1 parent 3f0b9a6 commit 90587d1

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

samples/InlineInitializationSample/Startup.cs

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

0 commit comments

Comments
 (0)