users@jersey.java.net

Re: [Jersey] Logging?

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Wed, 24 Sep 2008 08:50:13 +0200

Hi Craig,

On Sep 24, 2008, at 7:23 AM, Craig Iverson wrote:

> From what I can see you are using java.util.logger. Wonder why you
> did not choose to use an abstracted logger like apache commons
> logging or slf4j?

Because logging, for better or worse, is supplied with JDK 5 and
above and introduces no additional dependency on further jars.


> Our current application uses log4j and we want to use same logger
> for jersey logging. Your thoughts?

Is there any way to hook the two together?

Personal opinion: in general i don't like using logging APIs for
debugging purposes, i would prefer to spend time investing in DTrace
or BTrace scripts, rather than adding logging statements to code.

Paul.