You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Arun Jannela <ar...@wipro.com> on 2002/09/20 11:54:10 UTC

log4j


Hi,
How can I add two appennders and two log files for the same JSP file.

Regards,
Arun Jannela



RE: log4j

Posted by Colin MacDonald <co...@templarcorp.com>.
> -----Original Message-----
> 
> How can I add two appennders and two log files for the same JSP file.

Do you just mean something like:

log4j.logger.my.category=DEBUG, APPENDER1, APPENDER2
log4j.appender.APPENDER1=org.apache.log4j.RollingFileAppender
log4j.appender.APPENDER2=org.apache.log4j.RollingFileAppender
log4j.appender.APPENDER1.File=C:/logs/fileOne.log
log4j.appender.APPENDER2.File=C:/logs/fileTwo.log

-----------------------------------------------------------------
Colin MacDonald  |  Software Developer  |  Templar Corporation  |
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.391 / Virus Database: 222 - Release Date: 9/19/2002


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>