Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 406 Bytes

README.md

File metadata and controls

14 lines (11 loc) · 406 Bytes

serilog.sinks.xunit

Serilog sink for XUnit testing

To use, reference the nuget package SceneSkope.Serilog.Sinks.XUnit

In your tests, create an ILogger as shown in the LogTests.cs example

public LogTests(ITestOutputHelper output)
{
    _output = output as TestOutputHelper;
    Log = output.CreateSerilogLogger(LogEventLevel.Verbose);
}