A powerful logging implementation for xUnit.net that enables you to capture, inspect, and assert on log messages generated during test execution. Perfect for debugging tests, verifying logging behavior, and building testable applications with comprehensive logging coverage.
- ✅ Full
Microsoft.Extensions.Loggingintegration - Works seamlessly with the standard .NET logging infrastructure - ✅ Message inspection and assertions - Access all logged messages for verification in your tests
- ✅ Multiple creation patterns - Direct instantiation or dependency injection via
ILoggingBuilder - ✅ Configurable output - Control timestamps, log levels, scopes, and additional information
- ✅ Scope support - Captures and displays logging scopes for better context
- ✅
TimeProvidersupport - Testable time-based logging scenarios - ✅ xUnit v3 compatibility - Works with both
ITestOutputHelperandIMessageSink - ✅ Generic logger support - Strongly-typed loggers with
XUnitLogger<T>