You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by T Master <tm...@iknowledgeinc.com> on 2001/09/20 01:51:47 UTC
How to create a hierarchy of Category objects?
How is it possible to create a hierarchy of category objects.
Can a Hierarchy be stored in a properties configuration file? What is the
format?
Is it possible to have two separate configuration files, and to read each
one into a separate Hierarchy object? It seems plausible reading the
JavaDoc, however, the only problem is with watching a config file for
changes (no Hierarchy object may be passed to the method).
T Master.
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org
Re: How to create a hierarchy of Category objects?
Posted by Don Taylor <do...@yahoo.com>.
You don't create a category hierarchy per se, it's an implicit
creation. You just get instances of a Category object using whatever
name you want. I imagine most people use the class name as the category
name, since classes have an implicit hierarchy and the log4j docs
encourage you to do so. But you don't have to.
I recommend re-reading the section 'Category hierarchy' from
the log4j manual. You can find it at:
http://jakarta.apache.org/log4j/docs/manual.html
And then check out all the getInstance() methods of Category at:
http://jakarta.apache.org/log4j/docs/api/org/apache/log4j/Category.html
Hopefully that will help you see what's going on.
-- Don
--- T Master <tm...@iknowledgeinc.com> wrote:
>
> How is it possible to create a hierarchy of category objects.
>
> Can a Hierarchy be stored in a properties configuration file? What
> is the
> format?
>
>
> Is it possible to have two separate configuration files, and to read
> each
> one into a separate Hierarchy object? It seems plausible reading the
> JavaDoc, however, the only problem is with watching a config file for
> changes (no Hierarchy object may be passed to the method).
>
>
> T Master.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: log4j-user-help@jakarta.apache.org
>
__________________________________________________
Terrorist Attacks on U.S. - How can you help?
Donate cash, emergency relief information
http://dailynews.yahoo.com/fc/US/Emergency_Information/
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org