Thanks for pointing that out - I do indeed have a downlevel version of log4j
source code.  However, the JBoss source is NOT using
org.apache.log4j.Logger, which as you point out extends Category.  Instead
the source is using org.jboss.logging.Logger, which does not extend
Category, but instead wraps it.

----- Original Message -----
From: "Andreas Kuckartz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 08, 2002 12:41 AM
Subject: Re: [JBoss-user] Logging from within EJBs


> > How can JBoss deprecate an interface in a separate package?
>
> Category has been deprecated by the log4j project:
>
> "This class has been deprecated and replaced by the Logger subclass. It
will
> be kept around to preserve backward compatibility until mid 2003.
>
> Logger is a subclass of Category, i.e. it extends Category. In other
words,
> a logger is a category. Thus, all operations that can be performed on a
> category can be performed on a logger. Whenever log4j is asked to produce
a
> Category object, it will instead produce a Logger object. However, methods
> that previously accepted category objects still continue to accept
category
> objects.
>
> For example, the following are all legal and will work as expected.
>
>    // Deprecated form:
>    Category cat = Category.getInstance("foo.bar")
>
>    // Preferred form for retrieving loggers:
>    Logger logger = Logger.getLogger("foo.bar")
>
> The first form is deprecated and should be avoided.
>
> There is absolutely no need for new client code to use or refer to the
> Category class. Whenever possible, please avoid referring to it or using
> it."
>
> http://jakarta.apache.org/log4j/docs/api/index.html
>
> Andreas
>
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Oh, it's good to be a geek.
> http://thinkgeek.com/sf
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>
>




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Oh, it's good to be a geek.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to