You should set the org.apache logger to OFF in your chainsaw log4j config file.
<logger name="org.apache"> <level value="off"/> </logger> Scott On Mon, May 18, 2009 at 3:46 AM, Santhoo Kumar <[email protected]> wrote: > Hai, > > You have to remove the SocketAppdender from log4j file. Chainsaw client > uses socket appender, On loading of log4jxxx.jar it loads log4j.xml or > log4j.properties, if it finds it loads all the appenders. If in your > log4j.xml/log4j.properties contains socket appender it writes logs on > chainsaw client > > > Regards, > Santhoo > > --- On Mon, 5/18/09, Moley Harey <[email protected]> wrote: > > From: Moley Harey <[email protected]> > Subject: How to remove Chainsaw internal log messages from log file? > To: [email protected] > Date: Monday, May 18, 2009, 9:13 AM > > Hi, > > I have a C++ application that send log messages using log4cxx to Chainsaw > using an XMLSocketAppender. > > Messages sent by my C++ application are correctly received by Chainsaw and > what I am doing is to redirect all those messages to a file using the > following lines in my Chainsaw config file: > > <appender name="RollingAppender" class="org.apache.log4j. > RollingFileAppender"> > <param name="File" value="/data/chainsaw.log"/> > <param name="Append" value="true"/> > <param name="MaxFileSize" value="20000KB"/> > <param name="MaxBackupIndex" value="400"/> > <layout class="org.apache.log4j.PatternLayout"> > <param name="ConversionPattern" value="%d | %-5r | %-5p | %c | %t:%x > | %m%n"/> > </layout> > </appender> > > Messages sent my application are correctly saved in the "chainsaw.log" file > but some other Chainsaw internal messages are saved there too which is not > useful for me... > Do you know how can I disable those Chainsaw internal messages? > > Thanks in advance, > > Mh > > > > >
