The unit test target has geode-core/src/main/resources in the classpath
which means that Log4J finds our log4j2.xml file and creates/registers our
custom appenders. We might want to have a unit test log4j2.xml that gets
placed earlier on the classpath but only for the unit test target. The
integrationTest and distributedTest targets still need the
geode-core/src/main/resources/log4j2.xml earliest on the classpath.

The best solution is probably to hide
geode-core/src/main/resources/log4j2.xml from unit test if that's possible.

Second best solution might be to have a resources src set containing a
simplified log4j2.xml which is added to the classpath for unit test but not
for the other testing targets.

Anyone with gradle knowledge interested in helping with this?

Reply via email to