That should not be the case. Different webapps should be loaded by different
classloaders resulting in parallel configurations of log4j.
At 16:48 19.07.2001 +0300, you wrote:
>Hi all
>
>i have got tomcat and log4j entegration problem ..
>
>first of all i defined " TOMCAT_OPTS =
>-Dlog4j.configuration=log4j.properties "
>then i put two log4j.properties under two different contexts , test ,
>bireysel
>these log4j.property files are different from each other
>
>content of log4j.property file under
>TOMCAT_HOME/webapps/test/WEB-INF/classes
>**************************************************************
># Set root category priority to DEBUG and its only appender to A1.
>log4j.rootCategory=DEBUG,Rx
>
>
># Rx is set to be a ConsoleAppender.
>log4j.appender.Rx=org.apache.log4j.FileAppender
>log4j.appender.Rx.File=/tmp/bireysel_heboo.log
>
># Rx uses PatternLayout.
>log4j.appender.Rx.layout=org.apache.log4j.PatternLayout
>log4j.appender.Rx.layout.ConversionPattern=%d [%t] %-5p %c - %m%n
>****************************************************************
>
>content of log4j.property file under
>TOMCAT_HOME/webapps/bireysel/WEB-INF/classes
>**************************************************************
># Set root category priority to DEBUG and its only appender to A1.
>log4j.rootCategory=DEBUG,R
>
>
># R is set to be a ConsoleAppender.
>log4j.appender.R=org.apache.log4j.FileAppender
>log4j.appender.R.File=/tmp/heboo.log
>
># R uses PatternLayout.
>log4j.appender.R.layout=org.apache.log4j.PatternLayout
>log4j.appender.R.layout.ConversionPattern=%d [%t] %-5p %c - %m%n
>****************************************************************
>
>
>
>but i encounter that that these two context's log data are written to the
>same log file "/tmp/bireysel_heboo.log"
>any idea ?
>
>thanks ..
>
>
>
>
>
>
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
--
Ceki Gülcü - http://qos.ch
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]