Mani,
You can define multiple appenders for multiple categories
and all these appenders being of type FileAppender.
I am not adding much to what Laith said in the earlier post but
here's a small chunk of what your properties file might look like.

log4j.appender.PERF=org.apache.log4j.FileAppender
log4j.appender.GENERIC=org.apache.log4j.MyFileAppender
log4j.appender.PERF.File=perf.log
log4j.appender.GENERIC.File=generic.log
<define patterns>
<define categories and assign priorities and appenders>
<DEFINITELY specify additivity properties and set them to false>

HTH.
Ashwin.

-----Original Message-----
From: Kumar_maniranjan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 30, 2002 5:52 AM
To: Log4J Users List
Subject: How to log into two different files using single props file ??


Wanted to LOG some performance related messages into one file
PERFORMANCE.LOG and generic logiing to be done into 
GENERIC.LOG .... 
But not able to do it with one properties file... 

Is there neway ??

Rgds,
Mani

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

Attachment: winmail.dat
Description: application/ms-tnef

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

Reply via email to