I think you missed my point, it's not about the logging framework, its about the fact you don't control an external dependency during testing. Unit tests are meant to be reproducible, meaning they are done under controlled conditions.
> Most static methods are small and pure
This is very assuming, tests are a way of being specific about your intent.