You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by Jacek Laskowski <ja...@hp.com> on 2003/12/14 20:26:40 UTC

Two XLevel classes? Why?

Hi,

Just found that there're two XLevel classes:

   * 
modules/common/src/java/org/apache/geronimo/common/log/log4j/XLevel.java
   * modules/kernel/src/java/org/apache/geronimo/kernel/log/XLevel.java

diff shows that there're similar and the only significant difference is 
their package name.

Geronimo's log4j.properties seems to imply that the former is valid.

log4j.rootCategory=TRACE#org.apache.geronimo.kernel.log.XLevel, CONSOLE

Why do these classes coexist?

p.s. Once I had finished with the email I've found out why setting TRACE 
didn't work. TRACE#org.apache.geronimo.kernel.log.XLevel is what I had 
to use.

Jacek


Re: Two XLevel classes? Why?

Posted by Dain Sundstrom <da...@coredevelopers.net>.
XLevel must be in kernel because it is used during bootstrap.  The one  
in common should be removed.

-dain

/*************************
  * Dain Sundstrom
  * Partner
  * Core Developers Network
  *************************/

On Dec 14, 2003, at 1:26 PM, Jacek Laskowski wrote:

> Hi,
>
> Just found that there're two XLevel classes:
>
>   *  
> modules/common/src/java/org/apache/geronimo/common/log/log4j/ 
> XLevel.java
>   * modules/kernel/src/java/org/apache/geronimo/kernel/log/XLevel.java
>
> diff shows that there're similar and the only significant difference  
> is their package name.
>
> Geronimo's log4j.properties seems to imply that the former is valid.
>
> log4j.rootCategory=TRACE#org.apache.geronimo.kernel.log.XLevel, CONSOLE
>
> Why do these classes coexist?
>
> p.s. Once I had finished with the email I've found out why setting  
> TRACE didn't work. TRACE#org.apache.geronimo.kernel.log.XLevel is what  
> I had to use.
>
> Jacek
>