I vote for SLF4J. I've had many frustrating times with commons-logging class loading issues - although apparently they've tweaked the auto-discovery mechanism in 1.1.0. I dislike the idea of using JDK logging because I hate it when an an application framework or utility library imposes a logging implementation on me. The biggest hurdle, IMO, to SLF4J adoption is education users on how to use it. I've answered many support requests where users included all slf4j impl jars in their classpath instead of just one because they didn't follow instructions!
Paul On Sun, 2007-07-01 at 10:49 -0700, Howard Lewis Ship wrote: > I've been strongly thinking about this again; probably the last chance > to do so while T5 is still in alpha. > > It really comes down to: > > - Leave status quo / commons-logging > - Adopt SL4J > - Adopt JDK logging > > The big area this affects is the way a Log can be injected into a > service; the interface injected, etc., may change. > > ---------- Forwarded message ---------- > From: Howard Lewis Ship <[EMAIL PROTECTED]> > Date: Jul 27, 2006 9:57 AM > Subject: T5: getting away from commons-logging > To: Tapestry development <[email protected]> > > > A pretty common complaint is that commons-logging is a problem. It > does some wierd and awkward class loading things that ultimately > result in memory leaks. > > An alternative is SL4J: > > http://www.slf4j.org/ > > It has an improved API over commons-logging, making it easier to build > out complex messages. > > It's basic claim to fame is that it is statically bound. There are > different implementations of the framework for different toolkits. We > could bind to the log4j version for testing and building, and users > will bind to a specific version for deployment. > > It is under the X11 license (compatible with the ASL). > > The only problem is that the code is not quite threadsafe, something I > can address inside Tapestry 5 code. > > Thoughts? > > -- > Howard M. Lewis Ship > TWD Consulting, Inc. > Independent J2EE / Open-Source Java Consultant > Creator and PMC Chair, Apache Tapestry > Creator, Apache HiveMind > > Professional Tapestry training, mentoring, support > and project work. http://howardlewisship.com > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
