[EMAIL PROTECTED] wrote:
> 
> The "sort4.lcf" file has the following lines:
> 
>      # Set the priority of the category named "org.apache.log4j.examples" to
>      # Priority.INFO, attach appender A2.
>      log4j.category.org.apache.log4j.examples=INFO, A2
> 
> When I try to do this with my custom category (which contains an additional
> priority level - AUDIT) it doesn't work:
> 
>      log4j.category.com.mycompany.zzz.logger.MyTest=FATAL, LoginDB
> 
> Here is the error:
>      Exception in thread "main" java.lang.ExceptionInInitializerError:
> java.lang.ClassCastException: org.apache.log4j.Category
>           at
> 
>com.mycompany.zzz.logger.ZZZLoginCategory.getZZZLoginCategory(ZZZLoginCategory.java:68)
> 
>      at com.mycompany.zzz.logger.MyTest.<clinit>(MyTest.java:9)
> 
> Is there a proper format for this, and if so, what?
> 
Hi Tim,

I don't know how "quick" this is going to be.  The stack trace indicates
the ClassCastException occurs in your customer category.  We would
probably need to see your getZZZLoginCategory method to get an idea of
the problem.

- Paul
-- 
Beware of bugs in the above code.  I have
only proved it correct, not tried it.
-Don Knuth

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

Reply via email to