Hello,
There are a few changes in log4j 1.2 that require your attention.
The Category class has been replaced with the Logger class. The change is
mostly backward compatible except for sublcasses of Category. (JBoss uses
its own subclass of Category.) More precisely, the
org.apache.log4j.spi.CategoryFactory has been removed. It has been replaced
with the org.apache.log4j.spi.LoggerFactory class. For most users this
change is invisible. However, if you have sub-classed the Category class
then you must modify your sub-class to extend Logger instead of Category.
You must also use LoggerFactory instead of CategoryFactory.
Please see
http://jakarta.apache.org/log4j/docs/manual/manual.html#Changes
for more information.
I also strongly recommend against sub-classing Logger (or Category) to
introduce new printing methods, you can use the general purpose log method
instead. For example,
for some category-subclass object x instead of writing
x.trace("hello")
you can write
x.log(SomePrioritySubclass.TRACE, "hello");
If I am not mistaken, JBoss also uses deprecated and now removed methods
such as getOptions/setOptions in its own appenders. There is no need for
this as log4j uses introspection to configure its appenders and layouts.
Please let me know if you have any questions or comments. Regards, Ceki
This e-mail and any files transmitted with it are CONFIDENTIAL and intended
solely for the use of the individual or entity to whom they are addressed.
Any unauthorised copying, disclosure, or distribution of the material within
this e-mail is strictly forbiden. Any views or opinions presented within
this e-mail are solely those of the autor and do not necessarily represent
those of the company, unless otherwise specifically stated. An electronic
message is not binding on its sender. Any message referring to a binding
engagement must be confirmed in writing and duly signed. If you have
received this e-mail in error, please notify the sender immediately and
delete the original.
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development