[jboss-dev] Re: slf4j

Jason T. Greene jason.greene at redhat.com
Fri Jul 6 12:55:52 EDT 2007


On Fri, 2007-07-06 at 11:42 +0200, Max Rydahl Andersen wrote:
> >> MDC).  That means I can move to log4j, slf4j, or logback.  Out of those,
> >> slf4j seemed the most reasonable in terms of allowing easy integration 
> >> with
> >> various environemtns.
> > 
> > As I said a couple messages above, java.util.logging is more robust,
> > and allows formatters which could use thread local variables (I find
> > this habit of using hypish names to refer to simple pre-existing
> > things to be very annoying).
> > 
> > You don't really seem to be interested in our opinion overall, and
> > seem to be willing to use slf4j anyway, so I'm not sure what's the
> > point of posting here.
> > 
> > Rémy
> 
> Eh - Steve very clearly explained why jul is is not an option; it does
> not have NDC/MDC.

As Remmy said, this is easy to implement (it just a fancy name for using
a thread local). Also, I just looked at sl4j's source, and it relies on
the logging backend to actually implement MDC and NDC, so if you use
it's JUL backend it doesn't work!!


-- 
Jason T. Greene
Lead, POJO Cache
JBoss, a division of Red Hat




More information about the jboss-development mailing list