Ceki,

In my code, i create two Hierarchy objects:
e.g.
        Hierarchy h1 = new Hierarchy( Category.getInstance("ONE") );
        Hierarchy h2 = new Hierarchy( Category.getInstance("TWO") );
I do this so I can separate categories.
This helps in disabling logging for a certain hierarchy, thus treating
categories in different hierarchys separately.

This is NOT chained category hierarchy
 e.g.
   log4j.category.one=INFO
   log4j.category.one.child=INFO



I would like to load up these Hierarchy objects from a property file, and
associate it to a category , that acts as its root.
e.g.
    log4j.hierarchy.h1 = ONE
    log4j.hierarchy.h2 = TWO

   log4j.category.ONE=INFO
   log4j.category.TWO=INFO



Is this possible?

T Master.


----- Original Message -----
From: "Ceki Gülcü" <[EMAIL PROTECTED]>
To: "LOG4J Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, September 20, 2001 5:51 PM
Subject: Re: Storing hierarchies in log4j.properties


>
> I am afraid I do not understand the question. What do you mean by storing
hierarchies?
> Have you read the log4j manual or looked at the examples under
> src/org/apache/log4j/examples?
>
> Regards, Ceki
>
> At 17:41 20.09.2001 -0600, T Master wrote:
> >Ceki ,
> >
> >Is it possible to store hierarchys in a log4j.properties file?
> >If so, how?
> >
> >There is no example on the subject.
> >
> >T Master
>
> --
> Ceki Gülcü - http://qos.ch


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

Reply via email to