Hi,

> It's always hard to tell what settings log4j is actually using 

yes that's why there is the log4j.debug switch.

it forces log4j to spit out which configuration file it is using

it you are not forking your test, you have to define the MAVEN_OPTS env variable
unix:
MAVEN_OPTS=-Dlog4j.debug maven test

win:
set MAVEN_OPTS=-Dlog4j.debug
maven test

but if you are forking your junit test, you want to define
maven.junit.sysproperties=log4j.debug

either as a project.properties entry, or directly on the maven command line

maven -Dmaven.junit.sysproperties=log4j.debug

cheers,

Patrick


NOTICE
This e-mail and any attachments are confidential and may contain copyright 
material of Macquarie Bank or third parties. If you are not the intended 
recipient of this email you should not read, print, re-transmit, store or act 
in reliance on this e-mail or any attachments, and should destroy all copies of 
them. Macquarie Bank does not guarantee the integrity of any emails or any 
attached files. The views or opinions expressed are the author's own and may 
not reflect the views or opinions of Macquarie Bank.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to