Hi Rajnish,

your jBoss log4j setup will be in $JBOSS_HOME/server/default/conf/log4j.xml.

You'll need to edit it to include an appender and category.

In my apps, I use:


<appender name="Axis2Log" class="org.jboss.logging.appender.DailyRollingFileAppender">
       <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
       <param name="Append" value="true"/>

     <!-- Rollover at midnight each day -->
     <param name="DatePattern" value="'.'yyyy-MM-dd"/>
<param name="File" value="${jboss.server.home.dir}/log/Axis2Log.log"/>
       <layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d{DATE} %-5p [%c{1}:%L] %m%n"/>
       </layout>
   </appender>

And

   <category name="org.apache.axis2">
        <priority value="DEBUG"/>
         <appender-ref ref="Axis2Log"/>
     </category>

Thsi writes debug level logs to a file, Axis2Log.log, in the jBoss logging directory.

Hope this helps,

Chris


rajnishe wrote:
Hello All

I am using axis2 for webservice development.
and jboss 4.0.2 server .

log4j:WARN No appenders could be found for logger
(org.apache.axis2.description.AxisService).
log4j:WARN Please initialize the log4j system properly.

Thanks in advance for your kind sugestion to solve this problem.


Best Regards
Rajnish Chauhan

--

Chris Bowman
Director, Phoros Limited
mobile: +44(0)7766 881 564
email: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to