logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ashwin Bangalore" <arbangal...@statestreet.com>
Subject RE: How to log into two different files using single props file ??
Date Tue, 30 Apr 2002 15:47:23 GMT
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:Kumar_maniranjan@infy.com]
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:log4j-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-user-help@jakarta.apache.org>

Mime
View raw message