I can't this to work whatever I try: -D<property> option in tomcat server didn't work either, even after removing all references to trying to set this within code, so my tomcat start options are '-XX:+AggressiveHeap -XX:MaxPermSize=128m -Xms512m -Xmx1024m -Dedtftp.log.log4j=true' - this should work, but doesn't). It may be a tomcat problem perhaps.
log4j.jar is definitely on the classpath - I log pretty much everything there - here's a bit of my log4j file:
log4j.logger.org.quartz=error, logfile
log4j.logger.net.sf.jasperreports=error, stdout
log4j.logger.org.springframework=info, stdout
log4j.logger.org.hibernate=error,stdout
log4j.logger.test=info, logfile
log4j.logger.net.sf.jasperreports=info, stdout
log4j.logger.com.enterprisedt=info, stdout
(which all works lovely apart from the enterprisedt bit).
It doesn't really matter - thank you for trying Bruce, but I'm just not bright enough to do this I think!!!
I can cope without logging as it seems to be working ok now anyway, and as I'm using lots of logging within my own module anyway so it's pretty clear when and where, say, ftp.connect() fails if it does.
Thanks for all your help
- Jon