You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by Sam Berlin <sb...@gmail.com> on 2008/04/01 00:46:02 UTC
Re: Logging in core / core-nio
The decorator's probably good enough for now. I'll come back
complainin' when it isn't good enough. :)
Sam
On 3/31/08, Oleg Kalnichevski <ol...@apache.org> wrote:
>
> On Mon, 2008-03-31 at 15:09 -0400, Sam Berlin wrote:
> > Hi Folks,
> >
> > There's been a number of times that we've been looking to debug things
> > within httpcore & httpcore-nio, but have to resort to recompiling
> > and/or using a debugger with breakpoints, due to no logging within the
> > package. I can understand the desire to reduce dependencies, but I
> > humbly disagree with the conclusion. In my opinion, logging in
> > httpcore & httpcore-nio is very much useful & necessary.
> >
> > Is this issue firmly closed, or could logging somehow be added back
> > into core & core-nio?
> >
> > Thanks,
> > Sam
> >
>
> Hi Sam,
>
> I generally tend to think it is much, much cleaner and proper to inject
> logging capabilities using the Decorator pattern and still see no need
> to impose a choice of a particular logging toolkit onto all users of
> HttpCore.
>
> You can find decorators for the NIO interfaces in the contrib package:
>
> http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/contrib/src/main/java/org/apache/http/contrib/logging/
>
> Would that solve the problem for you?
>
> Oleg
>
>
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
> > For additional commands, e-mail: dev-help@hc.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
> For additional commands, e-mail: dev-help@hc.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org