[Yanel-dev] log4j Category

Josias Thöny josias.thoeny at wyona.com
Mon Nov 5 08:59:06 CET 2007


Michael Wechner wrote:
> Oli Kessler wrote:
> 
>> Hi all,
>>
>> The website http://logging.apache.org/log4j/1.2/apidocs/index.html  
>> says in the documentation for Category:
>>
>> ***
>> This class has been deprecated and replaced by the Logger subclass.  
>> It will be kept around to preserve backward compatibility until mid  
>> 2003.
>> ..
>>
>> // Deprecated form:
>> Category cat = Category.getInstance("foo.bar")
>>
>> // Preferred form for retrieving loggers:
>> Logger logger = Logger.getLogger("foo.bar")
>> ***
>>
>> What do you think?

+1 for not using deprecated classes.

> 
> 
> is this refering to the generic Logger API of Java
> 
> http://java.sun.com/j2se/1.4.2/docs/api/java/util/logging/Logger.html

It's referring to the log4j Logger class:

http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/Logger.html

As Logger extends Category it should be very easy to replace.

josias

> 
> ?
> 
> Which would use log4j as an implementation?
> 
> If so, then I think we should do this.
> 
> WDOT?
> 
> Cheers
> 
> Michi
> 
>>
>> Cheers,
>> -ok
>>
>>
>> _______________________________________________
>> Yanel-development mailing list
>> Yanel-development at wyona.com
>> http://lists.wyona.org/cgi-bin/mailman/listinfo/yanel-development
> 
> 
> 



More information about the Yanel-development mailing list