title: How to handle deprecation of IWebHostBuilder.UseSerilog() when IWebHostBuilder is still needed?
body: <p>The UseSerilog() extension is deprecated* for IWebHostBuilder in serilog-aspnetcore version 5.0.0. However I'm still using a IWebHostBuilder and a Startup class (aspnetcore 6), and IWebHostBuilder is not deprecated.</p>
  <p>Since deprecation implies future removal, how should I leverage Serilog going forward?</p>
  <hr />
  <p><em>reference:
  <a href="https://github.com/serilog/serilog-aspnetcore/releases/tag/v5.0.0" rel="noreferrer">https://github.com/serilog/serilog-aspnetcore/releases/tag/v5.0.0</a>
  &quot;mark IWebHostBuilder extensions as obsolete on platforms with IHostBuilder&quot;</em></p>