users@jersey.java.net

Re: [Jersey] Logging in Jersey

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Tue, 08 Dec 2009 16:31:03 +0100

On Dec 8, 2009, at 3:49 PM, Suneel Marthi wrote:

> Paul,
>
> I am trying to use slf4j binding with log4j. Is that not gonna work
> with Jersey?
>

There is no restriction in terms of the logging solution that your
application uses. But since Jersey uses JDK logging you need to
utilize JDK logging configuration or some suitable bridge to it to
control the logging output from the Jersey runtime. Does that answer
your question?

Paul.

> Suneel
>
>
>
>
> ----- Original Message ----
> From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
> To: users_at_jersey.dev.java.net
> Sent: Tue, December 8, 2009 5:09:04 AM
> Subject: Re: [Jersey] Logging in Jersey
>
>
> On Dec 8, 2009, at 9:28 AM, Robert Naczinski wrote:
>
>> Hi,
>>
>> knows anybody, how I configure logging in Jersey?
>>
>
> Jersey currently uses JDK logging, so any configuration needs to
> utilize that. The current reason for not switching is to avoid
> adding further dependencies. If there are significant advantages we
> could switch e.g. to slf4j.
>
> BTW we need to review the exception throwing and logging in Jersey.
> Currently it's a bit chaotic. For example, we should expose a well-
> defined set of loggers that are publicly available for configuration.
>
> Paul.
>
>
>> We use native Log4J in our projects.
>>
>> Thanx,
>>
>> Robert
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
>> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>