logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Curt Arnold <carn...@apache.org>
Subject Re: Deprecated - what to use instead?
Date Fri, 19 Aug 2005 15:56:25 GMT

On Aug 19, 2005, at 10:50 AM, Bruno Melloni wrote:

> One question and one suggestion for the log4j developers:
>
> Suggestion:
>
> When deprecating a class, please mention in the javadocs what the
> replacement code is.  Not everyone is a guru at all aspects of log4j,
> and some hints and examples would go a long way when we try to upgrade
> legacy code to the latest version.
>
> Question:
>
> org.apache.log4j.spi.RootCategory is now deprecated.  What should I  
> use
> instead?  My exact call is: "Hierarchy hierarchy = new Hierarchy(new
> RootCategory(Level.DEBUG));)"
>

RootLogger.  In the Javadoc @deprecation comment for the RootCategory  
class, there is a mention to use RootLogger instead.  However, I  
haven't checked the Javadoc to see how that was rendered.


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message