You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by akshay kumar <ak...@yahoo.com> on 2007/06/22 18:09:24 UTC

Log4j1.3 alpha-8 and chainsaw config problem

Hi ,
  I installed chainsaw1.3 alpha 8  as I am in the impression that I can use the NDC,LINE,METHOD all fields in chainsaw with log4j1.3.
  However It screwed me in my basic function itself..:(
  below is the XML appender config at my source side,
   
  <?xml version="1.0" encoding="UTF-8" ?> 
<!DOCTYPE log4j:configuration>
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="true"> 
  
<appender name="R" class="org.apache.log4j.RollingFileAppender">
<param name="File" value="C:\\C-WEB\Tomcat 5.0\logs\test1.log"/>
<param name="Append" value="true"/> 
<param name="MaxFileSize" value="3000KB"/> 
<param name="maxBackupIndex" value="5"/> 
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d %-5p] [%t] [%C\{2\} (%F:%L) - %m%n]"/>
</layout>
</appender>
   
  <appender name="Chainsaw1" class="org.apache.log4j.net.SocketAppender">
<param name="remotehost" value="localhost"/>
<param name="port" value="4445"/>
<param name="locationInfo" value="true"/>
</appender>
   
  <root>
<level value="debug"/>
       
       <appender-ref ref="R"/> 
       <appender-ref ref="Chainsaw1"/>
</root> 
</log4j:configuration>
  
 
  and below is the receiver config in my Chainsaw,
   
  <?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration >
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="true">
   
  <plugin name="SocketReceiver" class="org.apache.log4j.net.SocketReceiver">
      <param name="Port" value="4445"/>
   </plugin>
  
<appender name="RollingFile" class="org.apache.log4j.RollingFileAppender">
<param name="File" value="C:\\chainsaw1.log"/> 
<param name="Append" value="true"/> 
<param name="MaxFileSize" value="2000KB"/> 
<param name="maxBackupIndex" value="5"/> 
<layout class="org.apache.log4j.xml.XMLLayout"/>
  </appender> 
   
   
  <root>
      <level value="debug"/>
<appender-ref ref="RollingFile"/> 
   </root>
</log4j:configuration>

However I am not getting anything in my local test.log file neither in chainsaw.
  I replaced my earlier log4j jar files with the log4j1.3 in my tomcat.
   
  Please help me in solving this problem....
   
  Thanks in advance. 


 	      
---------------------------------
Park yourself in front of a world of choices in alternative vehicles.
Visit the Yahoo! Auto Green Center.