Capture serilog log events to xUnit output
public void ConfigureLogging(Xunit.Abstractions.ITestOutputHelper output)
{
Log.Logger = new LoggerConfiguration()
.MinimumLevel.Debug()
.WriteTo.XunitTestOutput(output)
.CreateLogger();
}
See the playground project for an example