Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 558 Bytes

README.md

File metadata and controls

16 lines (13 loc) · 558 Bytes

Serilog.Sinks.XunitTestOutput

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

alt tag