Skip to content

Leszek-Kowalski/Serilog.Sinks.NUnit

 
 

Repository files navigation

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.

About

NUnit sink for Serilog

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PowerShell 53.6%
  • C# 46.4%