Re: Specifying exclusive log file for one category

2002-07-17 Thread Ravishankar Rajagopalan
I set the additivity false at the end of my Logger.properties file. But Tomcat-uPortal's Logger.properties (which i understand executes after mine) seems to still over ride this and i find messages in both the logs after Tomcat starts up. Any other workaround that may work ? Thanks Ravi

Re: Specifying exclusive log file for one category

2002-07-16 Thread Ravishankar Rajagopalan
Hi : The objective is - messages from different modules (categories) need to go into separate files exclusively. Actually i tried to set it up in such a way : log4j.category.com.x.y.a1=DEBUG, R log4j.category.com.x.y.a2=DEBUG,AA and set separate appenders for R and AA, which works perfectly

Re: Specifying exclusive log file for one category

2002-07-16 Thread Rafael Alvarez
try setting the additivity of log4j.category.com.x.y.a1 and log4j.category.com.x.y.a2 to false. I think is something like: log4j.category.com.x.y.a1.Additivity=false log4j.category.com.x.y.a2.Additivity=false This way the appenders are not inherited, so only the appenders you specify are used.

RE: Specifying exclusive log file for one category

2002-07-15 Thread kirusshna
Hi ravi, Try this change in the properties and in the java file also. log4j.logger.Log1=DEBUG,Log1 log4j.logger.Log2=DEBUG,Log2 log4j.logger=Log1 log4j.logger=Log2 log4j.appender.Log1=org.apache.log4j.DailyRollingFileAppender log4j.appender.Log1.layout=org.apache.log4j.HTMLLayout