> >Get each class to use a different category
> 
> That's exactly my problem. It's not clear to me how to use a different
> category to each class.
> 
> From the examples I only see piaces of codes like this :
> 
> Category cat  = Category.getInstance(MyApp.class.getName());
> Category cat2 = Category.getInstance(Bar.class.getName());
> 
> but then how do I state that the category cat for example referes
> to FirstCategory and cat2 to SecondCategory  ??
> 
> log4j.category.FirstCategory=INHERITED,A2
> log4j.category.SecondCategory=WARN, A3

You would configure them by class name, eg:

log4j.category.MyApp=INHERITED,A2

etc

Basically, categories are both retrieved and configured by name.

Jon

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to