logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Javier Gonzalez" <jagon...@gmail.com>
Subject Re: Need help Logging Axis Soap messages
Date Fri, 03 Mar 2006 17:24:30 GMT
Try setting the whole org.apache.axis.* hierachy to debug, so that you can
see which one is the logger that you really want. (In other words: are you
sure the SOAPPart loggers are the ones that provide the information you
want?)

On 3/3/06, San D <saaan.di@gmail.com> wrote:
>
> 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>
>
> I appreciate any help.
>
> Thanks
> SanDi
>
>


--
Javier González Nicolini

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message