I use serilog in my projects with the static logger approach - it's nice and easy to be able to call Log.X on my class libraries rather than injecting a logger class everywhere.
However when it comes to unit/integration testing, if a test has failed it would be hugely beneficial to see the error logs from the class libraries (moreso for integration tests).
Because I am not injecting an ILogger into my classes (due to use of static logger), I can't create a mock test logger that writes output to the test logs.
Has anyone managed to output messages to XUnit using the Serilog global (static) logger?