There should be no problems doing that.  You will just want to set the
Threshold to ERROR on NEWCONSOLE.

On 1/25/07, Padmanaban Varatharajan <[EMAIL PROTECTED]> wrote:

Hi All,



In Log4J, I have to use the same properties file (log4j.properties) in
which I have certain configuration details already defined with the
following:



Existing: log4j.rootcategory=INFO, CONSOLE, LOGFILE



*          Default logging level is INFO and two appenders.

*          One is ConsoleAppender and the other is FileAppender.

*          And the threshold level is INFO for both the appenders



And my Requirement is

*          I need to use another appender, which will be
RollingFileAppender

*          The threshold level is INFO

*          Need to write the logging details in a different file.



Also

*          I would like to use another consoleAppender with the logging
level as ERROR. As the existing one is having INFO level.



Say: log4j.rootcategory=INFO, CONSOLE, LOGFILE, NEWFILE, NEWCONSOLE



Can anyone help me to achieve this? Also, tell me how to use the same in
the java code? Sample code will do better and appreciable.



Please respond me ASAP.



Thanks

Padmanaban



This message and the information contained herein is proprietary and 
confidential and subject to the Amdocs policy statement,
you may review at http://www.amdocs.com/email_disclaimer.asp



--
James Stauffer        http://www.geocities.com/stauffer_james/
Are you good? Take the test at http://www.livingwaters.com/good/

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

Reply via email to