ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Magesh Umasankar" <umag...@rediffmail.com>
Subject Re: [Vote] Logging
Date Thu, 10 May 2001 01:26:52 GMT
Peter Donald <donaldp@apache.org> wrote:

>>what features does LogKit have over Log4J, to make it 
>>more appealing to Ant2, other than size?

>Simplicity.

To perform a simple log operation in Log4J:

   Category  cat = Category.getInstance("com.foo");
   cat.setPriority(Priority.DEBUG);
   cat.debug("Debug Message"); 

To perform a simple log operation in LogKit:
   Category cat = new Category("com.foo");
   cat.setPriority(Priority.DEBUG);
   Logger logger = new Logger(cat);
   logger.debug("Debug Message");

Doesn't seem a lot different at least in the simplest of cases.  Please explain (probably
more complex scenarios) where the simplicity of LogKit wins over Log4J.

>Cheers,

>Pete

Magesh

_____________________________________________________
Chat with your friends as soon as they come online. Get Rediff Bol at
http://bol.rediff.com





Mime
View raw message