trbenning / serilog-sinks-xunit

The xunit test output sink for Serilog
MIT License
83 stars 8 forks source link

CreateTestLogger extension method #8

Closed feO2x closed 5 years ago

feO2x commented 5 years ago

As discussed in https://github.com/trbenning/serilog-sinks-xunit/issues/7, here is the pull request for the CreateTestLogger extension methods.

As requested, I created a new class TestOutputHelperExtensions and corresponding tests in TestOutputHelperExtensionsTests. I also touched TestOutputLoggerConfigurationExtensions to reuse the DefaultConsoleOutputTemplate (I made this constant internal) - you might want to adjust this if this isn't to your liking.

Happy holidays!

feO2x commented 5 years ago

No worries. Enjoy the rest of the year!