Maximilian Haeussler wrote:


Hi,

I think I forgot something fundamental here, it can't be that difficult to activate the debug mode of castor, trying now for one day:

a) I have a castor.properties files in the current dir and in the classpath with org.exolab.castor.debug=true
b) I've modified the castor.properties inside the castor-jar-file
c) I do "Unmarshaller u = new Unmarshaller(); u.setDebug(true);"
d) I have a castorbuilder.properties file in the current dir with org.exolab.castor.debug=true
e) the dir where the properties-file is located is placed before the castor.jar file in the classpath
g) I do this:
LocalConfiguration.getInstance().getProperties().setProperty("org.exolab.castor.debug", "true");
but when I do this afterwards, I get a "false": logger.debug(Boolean.toString(LocalConfiguration.getInstance().debug()));
How come????


has someone any ideas? I'm stuck, though this is supposed to be a very simple thing... I had the debug mode already running and used it often... I don't get it...WHAT THE HECK could be the problem here??? :-)
I don't remember what I changed recently.

Max,

All of the options above will enable debugging for Castor XML. If you're trying to enable debugging for Castor JDO, it can be enabled by placing the log4j.properties file from src/etc/ in the CLASSPATH so that Log4J can find it and begin outputting the logging statements. Be aware that you may want to alter the log4j.properties file to change the level and to output the logging statements to your desired location. Currently src/etc/log4j.properties is set up to output the INFO level to both the console and to a log file named castor.log.

BTW, I just checked in a change to the Ant build descriptor to include the log4j.properties file inside of the jar file from now on.

Bruce
--
perl -e 'print unpack("u30","<0G)[EMAIL PROTECTED]&5R\\"F9E<G)E=\\$\\!F<FEI+F-O;0\\`\\`");'


The Castor Project
http://www.castor.org/

Apache Geronimo
http://incubator.apache.org/projects/geronimo.html



----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user

Reply via email to