Dan doh!
I must have read that 4 or 5 times in the documentation but for some reason I couldn't make the connection between X.Y.Z with com.mycompany.classA thanks for the kick in the butt - everything is working fine now. > -----Original Message----- > From: Dan Lipofsky [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, January 29, 2002 4:03 PM > To: Log4J Users List > Subject: Re: setting a category's parent > > > > Is there a way to explicity set a category's parent using > the API? I > don't > > want to explicity put entries in my log4j.properties file > for each class I > > create a category for. This seems way too much work and > unmanagable. I > > want all my categories using the same Appender. > > ... > > I want to have all my category's inherit appenders from a > parent category > > for my project, but I don't want them to inherit directly from the > > rootCategory. I'm running Jboss and it uses Log4J for its logging > > (resetting the rootCategory will affect Jboss' logging and > I don't want to > > change this). I want to set additive to false for my > parent category (not > > inherit appenders from rootCategory), then have all my > child categorys > have > > additivity. > > You don't have to explicitly set the parent. > X.Y.Z inherits from X.Y and X and root. > > You can set additivity to false for X if you don't want to > inherit from > root and that will get you what you are asking for. > - Dan > > > > -- > 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]>