logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scott Deboy" <sde...@comotivsystems.com>
Subject RE: chainsaw configuration help
Date Tue, 12 Jun 2007 18:28:59 GMT
Add an appender-ref entry to the root node:

   <root>
      <level value="DEBUG"/>
      <appender-ref ref="RollingFile"/>
   </root>

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
sdeboy@comotivsystems.com
www.comotivsystems.com

-----Original Message-----
From: ashish talati [mailto:ajtalati@yahoo.com] 
Sent: Tuesday, June 12, 2007 10:59 AM
To: log4j-user@logging.apache.org
Subject: chainsaw configuration help

Hi scott,
  thank you very much for reply.
  I did use the file appender in my chainsaw receiver configuration as
below,
   
  <?xml version="1.0" encoding="UTF-8" ?>
  <!DOCTYPE log4j:configuration >
  <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"
debug="true">
   
  <appender name="RollingFile"
class="org.apache.log4j.RollingFileAppender">
  <param name="File" value="C:\\chainsaw.log"/> 
  <param name="Append" value="true"/> 
  <param name="MaxFileSize" value="1000KB"/> 
  <param name="maxBackupIndex" value="5"/> 
  <layout class="org.apache.log4j.SimpleLayout"/>
  </appender> 
   
   
  <appender name="A2" class="org.apache.log4j.ConsoleAppender">
  <layout class="org.apache.log4j.SimpleLayout"/>
  </appender>
   
   
  <plugin name="SocketReceiver"
class="org.apache.log4j.net.SocketReceiver">
  <param name="Port" value="4445"/>
  <param name="LocationInfo" value="true"/> 
  <param name="tailing" value="true"/> 
  </plugin>
   
  <root>
  <level value="debug"/>
  </root>
  </log4j:configuration>
   
  It is creating chainsaw file in the C drive but nothing comes in
there.
  Please let me know where I did wrong in this??
   
  Thanks.
   

 
---------------------------------
TV dinner still cooling?
Check out "Tonight's Picks" on Yahoo! TV.

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message