I would like to know how to use Log4J to register SOAP messages in WebSphere 7, I use JAX-WS, which uses the AXIS2 engine that comes with WebSphere 7. I was able to register SOAP messages using "trace" in WebSphere but I wanted to to know if there is a way to use Log4J to log SOAP messages and use File Appender.
I would appreciate if someone would tell me how to set it up, I tried a few things, but that didn't work.
I put the log4j.properties file in the 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
source
share