logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scott Deboy <scott.de...@gmail.com>
Subject Re: How to remove Chainsaw internal log messages from log file?
Date Mon, 18 May 2009 14:20:59 GMT
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 <santhoo_08@yahoo.com> 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 <moleyharey@gmail.com> wrote:
>
> From: Moley Harey <moleyharey@gmail.com>
> Subject: How to remove Chainsaw internal log messages from log file?
> To: log4j-user@logging.apache.org
> 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
>
>
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message