Skip to content

sceneskope/serilog.sinks.xunit

Repository files navigation

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);
}

About

Serilog sink for XUnit testing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published