• Articles
  • Api Documentation
Show / Hide Table of Contents
  • Dapplo.Log
    • AbstractLogger
    • ILogger
    • ILoggerConfiguration
    • LoggerMapper
    • LogInfo
    • LogInfoExtensions
    • LogLevels
    • LogSettings
    • LogSource
    • LogSourceExtensions
    • NullLogger
  • Dapplo.Log.LogFile
    • FileLogger
    • ForwardingLogger
    • IFileLoggerConfiguration
  • Dapplo.Log.Loggers
    • ColorConsoleLogger
    • ConsoleLogger
    • DebugLogger
    • StringWriterLogger
    • TraceLogger
  • Dapplo.Log.XUnit
    • XUnitLogger

Namespace Dapplo.Log.XUnit

Classes

XUnitLogger

xUnit will have tests run parallel, and due to this it won't capture trace output correctly. This is where their ITestOutputHelper comes around, but Dapplo.Log can only have one logger. This class solves the problem by registering the ITestOutputHelper in the CallContext. Every log statement will retrieve the ITestOutputHelper from the context and use it to log.

Back to top Copyright © 2017 Dapplo