Look at src/org/apache/xml/security/resource/log4j.properties in the source tree. Change these lines to print debug messages on Console:

log4j.logger.org.apache.xml.security=DEBUG, Console
log4j.logger.org.apache.xml.security.test.AllTests=DEBUG, Console

Specify the following system property when running tests:

-Dlog4j.configuration=[path to logging.properties]

Make sure log4j and apache commons logging jars are in classpath.

Look at the build.xml and search for "log4j" to see how this works when running ant and Junit tests.

--Sean


Bolcina Ivan wrote:
Thanks for info, but I don't understand it.

The link on site of apache xml security seems broken, and link you provided 
explains things very generic.

As far as I understand, I have to write yet another configuration file?
Has anyone enable debuging messages? Can you share your configuration 
files/startup properties?

BR,ivan

-----Original Message-----
From: sean.mul...@sun.com [mailto:sean.mul...@sun.com] Sent: Wednesday, January 06, 2010 3:27 PM
To: security-dev@xml.apache.org
Subject: Re: debugging

Bolcina Ivan wrote:
Hi.

How to enable debuging messages. I looked at log4j.log and it seems fine, but no debug messages are printed out to console?

See: http://commons.apache.org/logging/guide.html#Configuration

--Sean

Reply via email to