Serilog.Sinks.NUnit

NUnit Serilog sink. Usage: var log = new LoggerConfiguration().WriteTo.NUnitOutput().CreateLogger();


Keywords
License
MIT
Install
Install-Package Serilog.Sinks.NUnit -Version 1.0.3

Documentation

Serilog.Sinks.NUnit

Build status MyGet CI NuGet

Basic NUnit sink for Serilog. Any log attempts are being displayed in the test output window by default in following format:

{Timestamp:yyyy-MM-dd HH:mm:ss} [{Level}] {Message}{NewLine}  {Exception}

Works in Resharper and NUnit console runner as well.

Package - Serilog.Sinks.NUnit

var log = new LoggerConfiguration()
	.WriteTo.NUnitOutput()
	.CreateLogger();

Issues

Logging currently does not work in VS Test Adapter as TestContext.Out is not being populated there.