You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Andre <bu...@gmail.com> on 2009/01/04 15:21:01 UTC

Logging with WSS4j

Hello ,
I'm using Tomcat6 + Axis 1+wss4j.
I have to modify something in wss4j's source code but I can't test its
results...but I couldn't enable logging with log4j..
How should I do that???
I could be able to do log with log4j for axis..using the following
properties file , placed in folder \Tomcat\webapps\axis\WEB-INF\classes.

log4j.properties :

# Set root logger level to WARN and its only appender to A1.
log4j.rootLogger=WARN, A1
# show DEBUG for SOAPPart method
log4j.logger.org.apache.axis.SOAPPart=DEBUG
# A1 is set to be a ConsoleAppender.
# log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.A1=org.apache.log4j.FileAppender
log4j.appender.A1.File=axis.log
# A1 uses PatternLayout.
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n


How do I enable logging with wss4j?
I tried putting the properties file included with wss4j's source but with no
luck..
Thanks in Advance

-- 
Andrea Pezzoli - s144892
Politecnico di Torino