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 [EMAIL PROTECTED] wrote: > 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. > > Perhaps you would want to try: > log4j.category.com.x.Additivity=false > > so you have complete control over the appenders of > your particular hierarchy. > > Hope this help, > > Rafael Alvarez > > --- Ravishankar Rajagopalan > <[EMAIL PROTECTED]> wrote: > > <some lines deleted> > >>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 fine. >> >>But we are using Tomcat-uPortal which has its own >>Logger.properties file (so in our system we have two >> > >>of them) and it sets the log4j.rootCategory=DEBUG, R >>and this makes all the messages to flow into >>this file as all other categories come under the >>Root. Is there any way i can work-around this >>(either by changing the Logger.properties of >>Tomcat-uPortal) or any other change ? >> >>Thanks & Regards. >>Ravi >> > > > __________________________________________________ > Do You Yahoo!? > Yahoo! Autos - Get free new car price quotes > http://autos.yahoo.com > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>