title: How to configure and use Serilog in ASP.NET Core 6?
body: <p>Since the recently introduced new structure of the Program.cs startup code, the documentation confuses me a bit.</p>
  <p>In the officially provided <a href="https://github.com/serilog/serilog-aspnetcore" rel="noreferrer"><code>Serilog.AspNetCore</code> example</a> and in the <a href="https://github.com/getsentry/sentry-dotnet/blob/main/samples/Sentry.Samples.AspNetCore.Serilog/Program.cs" rel="noreferrer"><code>Serilog.Sentry</code> example</a>, they use <code>.UseSerilog()</code> on the <code>WebHostBuilder</code>. I cannot find this method.</p>
  <p>This is what I have tried:</p>
  <pre><code>using Serilog;
  
  var builder = WebApplication.CreateBuilder(args);
  // adding services...
  
  builder.Logging.AddSerilog(); // &lt;- is this even necessary?
  
  var app = builder.Build();
  app.UseSerilogRequestLogging();
  
  // configure request pipeline
  app.Run();
  </code></pre>
  <p>But how / where can I <strong>configure the sinks</strong>, e.g. Debug, Console, Sentry, ...? I have the feeling that docs are a bit outdated or I am just a bit blind.</p>