I would be interested in breaking this into two problem.

1) Modifying FileAppender to RollingFileAppender. This woud stop the debug
log file (log.txt) keep growing.

2) Stopping my messages going into log.txt.

While I investigate on the second problem, can someone please enlighten me
on the first problem?

Thanks in advance.

Thanks & Regards,
Ayyappan Gandhirajan
---------------------------------------------
Office: 91.80.2225.1554 Extn 1472
Mobile: 91.94483.14969
E-Mail: [EMAIL PROTECTED]
-----------------------------------------------


-----Original Message-----
From: GANDHIRAJAN,AYYAPPAN (HP-India,ex2)
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 17, 2004 11:33 AM
To: '[EMAIL PROTECTED]'
Subject: RE: log4j problem


Guys,

Any clue???


Thanks & Regards,
Ayyappan Gandhirajan
---------------------------------------------
Office: 91.80.2225.1554 Extn 1472
Mobile: 91.94483.14969
E-Mail: [EMAIL PROTECTED]
-----------------------------------------------


-----Original Message-----
From: GANDHIRAJAN,AYYAPPAN (HP-India,ex2)
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 16, 2004 4:49 PM
To: '[EMAIL PROTECTED]'
Subject: log4j problem


Hello friends,

I am using Apache XML security for signature verification in my application.
The scenario is like this. The end client will send the signed request
request to the webservice, wherein I do carry out the signature verification
of the XML request message. If verified successfully, the end client will be
given access. Otherwise denied.

The above mentioned functionality works very fine. But I am facing a strange
problem regarding log4j, which comes with apache xml security. For debugging
purpose, the debug log messages are logged by my application in a file
called debug.log. Unfortunately, these log  messages are also logged in
log.txt, which is created under %bea_home%\weblogic8.1\server\bin. This file
keeps growing as the application runs in the weblogic server. 

I was trying to find any log.txt in the weblogic configuration. But I
couldn't find such one. But I could see few lines in config.xml present in
the jar file.

<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/";>
        <!--
http://jakarta.apache.org/log4j/docs/api/org/apache/log4j/xml/DOMConfigurato
r.html -->
        <appender name="LOGTXT" class="org.apache.log4j.FileAppender">
                <param name="File" value="log.txt" />
                <!--
                <param name="File" value="System.out" />
                -->

                <layout class="org.apache.log4j.PatternLayout">

                <param name="ConversionPattern" value="%-5p %C{1}:%L -
%m\n"/>
                <!--
                <param name="ConversionPattern" value="%d %-5p %C{10}:%-4L -
%m\n"/>
                -->
                </layout>
        </appender>
////

Have any of you faced this problem? 

Can someone please enlighten me in this regard?

Thanks & Regards,
Ayyappan Gandhirajan
---------------------------------------------
Office: 91.80.2225.1554 Extn 1472
Mobile: 91.94483.14969
E-Mail: [EMAIL PROTECTED]
-----------------------------------------------

Reply via email to