users@jersey.java.net

Re: [Jersey] log HTTP exchanges

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Wed, 12 Aug 2009 16:08:51 +0200

On Aug 12, 2009, at 3:06 PM, Ari Heino wrote:

>
> Any thoughts on having this jersey logging filter using f.e. log4j
> configurations? Or is it already using them or anything like that?
>

Jersey uses JDK logging. So you will need to use a "bridge" to another
logging framework, for example:

   http://blog.cn-consult.dk/2009/03/bridging-javautillogging-to-slf4j.html

It is also possible to redirect JDK logging as appropriate:

   http://java.sun.com/javase/6/docs/technotes/guides/logging/index.html

Paul.

> Just so the log could be directed to suitable place if it is not
> needed on
> the console.
>
> -- .aRi
>
> --
> View this message in context: http://n2.nabble.com/log-HTTP-exchanges-tp2182111p3430566.html
> Sent from the Jersey mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>