Hi Martin/Pete, 

Thanks for sharing your opinions. 

I'll certainly take a look at the Apache Commons Logging as a way of abstracting away 
the implementation. 

Thanks, 
Al.



-----Original Message-----
From: McKinstry, Pete (HQP) [mailto:[EMAIL PROTECTED]] 
Sent: 09 July 2002 16:49
To: JDJList
Subject: [jdjlist] RE: Log4j vs. 1.4/JSR47 Logging API


I agree w/ Martin. The biggest reason to favor Log4J is it's availability in pre-1.4 
environments. Most of the significant issues from the apache critique were addressed 
in later versions of JDK logging. (The current version is here: 
http://jakarta.apache.org/log4j/docs/critique.html) 

You might want to wrap the API. They are so similar that it's easy to create a common 
interface & plug-in the API you want @ run-time. That's what I've done in the past and 
it's works great for switching APIs later. You might also look at the apache commons 
project which provides similar wrapper logic for different logging packages. 
(http://jakarta.apache.org/commons/logging.html)

-pgm
-----Original Message-----
From: Martin Kisimov [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 09, 2002 5:52 AM
To: JDJList
Subject: [jdjlist] RE: Log4j vs. 1.4/JSR47 Logging API


Hi Alastair, 
One problem that I have come across is that using the APIs from 1.4 requires you to 
use the appropriate environment, i.e. 1.4. Most Application servers, apart from the 
open source ones, such as Tomcat and JBoss support previous versions of the 
environment 1.2 and 1.3. If you are not presented with this problem, I can't offer a 
detailed opinion on the benefits of using the one versus the other. In a distributed 
environment you may not have this problem, or if you are not using an application 
server this is also not a problem as long as you are not restricted by the use of the 
appropriate environments.
We are currently using Log4J, but this is purely based on the fact that the decision 
was made before the APIs of 1.4 were available.
Hope this helps 
Martin 


-----Original Message----- 
From: Alastair Rodgers [mailto:[EMAIL PROTECTED]] 
Sent: 09 July 2002 02:38 
To: JDJList 
Subject: [jdjlist] Log4j vs. 1.4/JSR47 Logging API 


Hi, 
I'm trying to decide whether to use Log4J or the Java 1.4 logging API (JSR47) in a 
distributed J2EE app. 
I've read a lot of opinions expressed favouring Log4J over 'standard' Java 1.4 
logging, but most of what I've read seems to be quite old and was written before the 
final release of the 1.4 API, e.g. 
http://www.ingrid.org/jajakarta/log4j/jakarta-log4j-1.1.3/docs/critique.html, and I 
think some changes may have been made to the 1.4 spec as a result of the criticisms. 
Can anyone give me an informed opinion of whether there is still such a great 
difference between these two frameworks, and which they would recommend? 
Thanks, 
Al. 
To change your membership options, refer to: 
http://www.sys-con.com/java/list.cfm 
To change your membership options, refer to: 
http://www.sys-con.com/java/list.cfm 

To change your membership options, refer to:
http://www.sys-con.com/java/list.cfm

Reply via email to