Capture xUnit Test Output with NLog and Common Logging

You could just wrap the xUnit helper in an ILog or ILogger, but we can also take it a step further and get all of the NLog features too! By creating an NLog target that wraps the ITestOutputHelper we can enable ourselves to use multiple targets, layouts, variables, verbosity levels, and more.

Search This Blog

About Tom

Tom DuPont is a Software Engineer. He has been a tool at CodeSmith, made love at Match, and now makes war for Blizzard. He specializes in C#, ASP.NET, and even that crazy JavaScript stuff. His views and opinions are his own.

Listen to Tom

Tom is a host on the QQ Cast, where he helps answer geek culture's most superfluous questions.