I would like to know how to utilize Log4J to log SOAP messages in WebSphere 7, I am using JAX-WS which uses AXIS2 engine that ships with WebSphere 7. I was able to log the SOAP messages using "tracing" in WebSphere but I would like to know if there is a way to use Log4J to log SOAP messages and use a File Appender.
I would appreciate if someone can tell me exactly how to configure it, I tried a few things but it did not work.
I did put log4j.properties file in WEB-INF/classes as follows but it does not log SOAP messages.
log4j.rootCategory=DEBUG, LOGFILE
log4j.logger.org.apache.axis2=DEBUG, LOGFILE
log4j.category.org.apache.axis2=DEBUG, LOGFILE
log4j.logger.org.apache.axis2.transport.http=DEBUG, LOGFILE
log4j.category.org.apache.axis2.transport.http=DEBUG, LOGFILE
log4j.logger.com.ibm.ws.websvcs=DEBUG, LOGFILE
log4j.category.com.ibm.ws.websvcs=DEBUG, LOGFILE
log4j.appender.LOGFILE=org.apache.log4j.FileAppender
log4j.appender.LOGFILE.File=C:/K1/logs/axis.log
log4j.appender.LOGFILE.Append=true
log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout
log4j.appender.LOGFILE.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss,SSS} [%t] %-5p %c %x - %m%n