Log4j appender for debug output if test fails
问题 I would like to set up my test-logging so that log output is mainly suppressed - unless a test fails. then I would like to have the debug output. I know the manual solution of just modifying the log4j.properties in the test classpath or just having debug logging always active for tests - but I don't want to spam the console with unnessesary output for green tests. For failing tests I want the automatic build to give me the debug output in case there are some weired environment issues going on