I don't understand what you mean by "maintain hierarchy, among the categories, which are created in different classes". You don't do anything to maintain the hierarchy.
To me a category is simply a name. That's all. There just happens to be a special character, '.', which establishes a parent/child relationship between the names separated the '.'. The big deal about that relationship is you can specify appenders and priority levels for a parent and they're automatically inherited (unless you explicitly prevent it) by the child. Other than that, a category name is just a string and log4j places no more importance on it than that. To get you started, the documentation suggests you define category names as fully-qualified class names. Of course you notice the packages in the fully-qualified names are separated by the '.' character, thus establishing a hierarchy that matches the packaging hierarchy of your system. But it's only a suggestion, not a requirement. You can do whatever makes sense to you. -- Don --- rao srinivas <[EMAIL PROTECTED]> wrote: > hi, > > I am not clear about category hierarchy. I can do > parent, child hierarchy among categories, which are in > the same class. > But i don't know how to maintain hierarchy,among the > categories, which are created in different classes. > > please let me know...and is there any detail document > on this. > > Thanks > Srinivas > > __________________________________________________ > Do You Yahoo!? > Make a great connection at Yahoo! Personals. > http://personals.yahoo.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > __________________________________________________ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]