Clover Knowledge Base : How to capture Clover's logging to a file when my instrumented application is running

Add the following to your instrumented app's JVM arguments: -Dclover.logging.level=debug -Dclover.logging.adapter=log4j

Ensure is on your JVM's classpath, here's an example (note the "clover." prefixed class names).

log4j.rootLogger = DEBUG, FILE
log4j.appender.FILE.layout.ConversionPattern=%-4r [%t|%t] %-5p %c %x - %m%n

Log4j support get broken at some point in the 2.x development stream. Clover 3.1.1 and greater fixes this.