Closed feO2x closed 5 years ago
I like it. Do you want to submit a pull request?
Yes, I will implement this in the upcoming days if that's OK for you.
Is it OK if I add these methods to the TestOutputLoggerConfigurationExtensions
class?
I think I'd prefer adding a new class called TestOutputHelperExtensions
.
Merged in 1.0.7
First of all, thanks for this sink, I use it in my daily programming life.
I would like to add an extension method that simplifies the creation of
ILogger
instances that log toITestOutputHelper
. Usually, in my test projects, it looks like this:Of course, we could add optional parameters for e.g.
outputTemplate
andLogEventLevel
to this method.In the end, it could be used like this:
IMO, this would simplify the calling code tremendously. What's your opinion?