Hi Scott,
  thanks for your consideration.
  below are my appenders and chainsaw reciever config files.
   
  appenders in log4j config files,
   
  #TEST
  #Level=ALL, Facility=USER
  log4j.debug=true
  log4j.rootLogger=all,Chainsaw1,Chainsaw2,STDOUT,R
  log4j.appender.Chainsaw1=org.apache.log4j.net.SocketAppender
  log4j.appender.Chainsaw1.remoteHost=localhost
  log4j.appender.Chainsaw1.port=4445
  log4j.appender.Chainsaw1.locationInfo=true
  log4j.appender.Chainsaw1.layout.ConversionPattern=%p: %c - %m
   
  log4j.appender.Chainsaw2=org.apache.log4j.net.SocketAppender
  log4j.appender.Chainsaw2.remoteHost=remotehost IP address
  log4j.appender.Chainsaw2.port=4445
  log4j.appender.Chainsaw2.locationInfo=true
  log4j.appender.Chainsaw2.layout.ConversionPattern=%p: %c - %m
   
   
  log4j.appender.STDOUT=org.apache.log4j.ConsoleAppender
  log4j.appender.STDOUT.layout=org.apache.log4j.PatternLayout
  log4j.appender.STDOUT.layout.ConversionPattern=%d [%t] %-5p %c %x - %m%n
   
  log4j.appender.R.File=${catalina.base}/logs/test1.log
  log4j.appender.R=org.apache.log4j.RollingFileAppender
  log4j.appender.R.MaxFileSize=3000KB
  log4j.appender.R.MaxBackupIndex=5
  log4j.appender.R.layout=org.apache.log4j.PatternLayout
  log4j.appender.R.layout.ConversionPattern=%d %-5p [%t] %C{2} (%F:%L) - %m%n
   
   
  And here is my Chainsaw Reciever config file,
   
  <?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="1000KB"/> 
  <param name="maxBackupIndex" value="5"/> 
  <layout class="org.apache.log4j.xml.XMLLayout"/>
  </appender> 
   
  <root>
  <level value="debug"/>
  <appender-ref ref="RollingFile"/> 
  </root>
  </log4j:configuration>
  
  

Scott Deboy <[EMAIL PROTECTED]> wrote:
  If you would paste the contents your appender and Chainsaw config files,
we can probably help you out.

Scott Deboy
Principal Engineer
COMOTIV SYSTEMS
111 SW Columbia Street Ste. 950
Portland, OR 97201
Office: 503.224.7496
Direct Line: 503.821.6482
Cell: 503.997.1367
Fax: 503.222.0185
[EMAIL PROTECTED]
www.comotivsystems.com


-----Original Message-----
From: ashish talati [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 14, 2007 8:56 AM
To: log4j-user@logging.apache.org
Subject: Chainsaw help

Hi there,
I used Rolling file appender in chainsaw Reciever configuration to
save the logs in one seprete local file.
It is working fine ,however I am facing following problems.
1) In the local file Logs are saved without any timestamp
information,I think it has to do with some layout pattern but couldnt
figure out.
below is my appender config in chainsaw,

appender name="RollingFile"
class="org.apache.log4j.RollingFileAppender">











2) How can I filter/avoid the Chainsaw internal logs that comes in
"chainsaw-log" tab to store in the file along with my other logs. How
can I use some filter?

3) At the source side that is from where actual Socket appender is
sending logs to the chainsaw, what is the effect of Location
Info=true/false in rolling file appender..(I am using it)??.. I tried
both but dont noticed any change at chainsaw side....the NDC,Line,Method
all fields are null in both cases.

4) when I Drag and drop the above XML file again in chainsaw it is
giving me following error,

"Log4jEntityResolver.resolveEntity(null, dummy://log4j.dtd/log4j.dtd)
called"

and the logs are keep increasing with this error.Please help in solving
this problems.

Thanks.





---------------------------------
Yahoo! oneSearch: Finally, mobile search that gives answers, not web
links. 

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



       
---------------------------------
Looking for a deal? Find great prices on flights and hotels with Yahoo! 
FareChase.

Reply via email to