Logging with output in Unit Tests in .Net Core 2.0

added by DotNetKicks
2/22/2018 1:15:22 PM

2 Kicks, 300 Views

If you use logging in your application code (and you should) then it would be nice if all that logging info appeared in your unit tests. If you use dotnet core and the default Microsoft.Extensions.Logging then logs will not automatically appear. Unfortunately the default Debug and Console loggers