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 Greg Fitzgerald <gr...@db.com> on 2002/10/08 16:02:17 UTC

DailyFileAppender and multiple hierachies doc

Help please,

We have created our own logger called AppLogger,  that has extended Logger. This is used by some applications, that use components that use the Logger class from log4j. Presently the properties cofigure a file appender for both the rootlogger and the extended logger, pointing to same file, i.e.
log4j.rootLogger=DEBUG, R
log4j.category.com.db=DEBUG, A1
log4j.additivity.com.db=false

log4j.appender.R=org.apache.log4j.FileAppender
log4j.appender.R.File=C:/log/log.txt

log4j.appender.A1=org.apache.log4j.FileAppender
log4j.appender.A1.File=C:/log/log.txt

Is this good practice, and what will happen if i move to a DailyFileAppender. There will be 2 instance of this class that will try to roll over to next day, will this cause an error.
Is there any way arounf this ?

Also Where can i find
the multiple hierachy tutorial for servlet containers as mentioned in the full log4j manual.

thanks greg


--

This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.



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