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 log4j.properties is on your JVM's classpath, here's an example (note the "clover." prefixed class names).
log4j.rootLogger = DEBUG, FILE
log4j.logger.com.cenqua.clover.appender=FILE
log4j.appender.FILE=clover.org.apache.log4j.FileAppender
log4j.appender.FILE.File=/tmp/log4j
log4j.appender.FILE.layout=clover.org.apache.log4j.PatternLayout
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.
Last modified on Jun 13, 2011
Powered by Confluence and Scroll Viewport.