trbenning / serilog-sinks-xunit

The xunit test output sink for Serilog
MIT License
80 stars 7 forks source link

Trim extra newlines #10

Closed wintonpc closed 5 years ago

wintonpc commented 5 years ago

Using the output template {Timestamp:HH:mm:ss.fff} {Logger} [{Level:u3}] {Message}{NewLine}{Exception}, a double newline is rendered when there is no exception: one from {NewLine} and one from _testOutputHelper.WriteLine().

This PR removes the extra newline.

Related issue: https://github.com/serilog/serilog-sinks-debug/issues/3

trbenning commented 5 years ago

Approved. Thanks for your contribution.