- create a
xunit.runner.jsonfile at project root and enable diagnostic messages - add a package reference to
MartinCostello.Logging.XUnit.v3in the test project - inject a
IMessageSinkinto the app fixture and configure logging with the sink - run
dotnet test --logger "console;verbosity=normal"to see log messages
Click here for the full sample project.