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 Bruno Melloni <Br...@akuratus.com> on 2005/08/19 17:50:14 UTC
Deprecated - what to use instead?
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));)"
Thanks.
Bruno Melloni
Director of Software Architecture
Akuratus Corporation
1333 N. Stemmons Fwy, Suite 110
Dallas, Texas 75207
Phone: 469.227.0920
Fax: 469.227.0967
bruno.melloni@akuratus.com
www.akuratus.com
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
Re: Deprecated - what to use instead?
Posted by Curt Arnold <ca...@apache.org>.
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