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 Ceki Gulcu <ce...@qos.ch> on 2001/11/30 20:49:54 UTC

Re: Is Category.getPriority() supposed return null if Priority is not explicitly set??

There is a method called getChainedLevel in the Category class. Just use that. 

At 13:20 30.11.2001 -0500, you wrote:

>I wrote some code to check the priority of a particular class but
>I am getting a null pointer returned. My assumption was that the
>priority that was "inherited" would be returned if not explictly set
>on that Category. The alternative is to call isEnabledFor() and loop
>through all standard priorities to determine the reporting level
>for a class. Seems like returning the inherited Priority would be
>a desirable thing.
>
>-Scott
>
>
>
>--
>To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>