axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "San D" <saaan...@gmail.com>
Subject Logging Axis Soap messages
Date Fri, 03 Mar 2006 16:05:21 GMT
Hi,
Is there a way to log the Axis request and response SOAP messages
using log4j.

I tried with the following.It was creating the axis.log file, but no
messages in it?
where am i doing wrong?

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">

<appender name="FILE_ERROR" class="org.apache.log4j.FileAppender">
   <param name="File" value="d:/Log/ErrorLog.log"/>
   <param name="Append" value="false"/>
   <param name="Threshold" value="ERROR"/>
   <!-- Rollover at midnight each day -->
    <layout class="org.apache.log4j.PatternLayout">
    <param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
   </layout>
</appender>

 <appender name="FILE_INFO" class="org.apache.log4j.FileAppender">
   <param name="File" value="d:/Log/AuditLog.log"/>
   <param name="Append" value="false"/>
   <param name="Threshold" value="INFO"/>
   <!-- Rollover at midnight each day -->
    <layout class="org.apache.log4j.PatternLayout">
     <param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
     </layout>
</appender>

 <appender name="FILE_DEBUG" class="org.apache.log4j.FileAppender">
   <param name="File" value="d:/Log/axis.log"/>
   <param name="Append" value="false"/>
   <param name="Threshold" value="DEBUG"/>
   <!-- Rollover at midnight each day -->
  <layout class="org.apache.log4j.PatternLayout">
  <param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
</layout>
</appender>

 <category name="log4j.logger.org.apache.axis.SOAPPart" additivity="false">
    <priority value="DEBUG"/>
    <appender-ref ref="FILE_DEBUG"/>
 </category>
 <root>
   <appender-ref ref="FILE_ERROR"/>
   <appender-ref ref="FILE_INFO"/>

</root>
</log4j:configuration>

 Thanks
SanDi

Mime
View raw message