'Gradle test: println works, logger won't

I'm building a Gradle plugin that does a lot of stuff.

I'm testing it.

I added a lot of logs... None appear.

Yet, if I add println statements instead of logs, they do appear.

Why? And how do I test "slf4j" is working correctly?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source