- create a
xunit.runner.json
file at project root and enable diagnostic messages - add a package reference to
MartinCostello.Logging.XUnit.v3
in the test project - inject a
IMessageSink
into 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.