Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 1 KB

README.md

File metadata and controls

25 lines (18 loc) · 1 KB

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.