commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Gregory <garydgreg...@gmail.com>
Subject Re: [crypto] Logging dependency
Date Fri, 10 Jun 2016 17:38:04 GMT
On Fri, Jun 10, 2016 at 3:55 AM, Torsten Curdt <tcurdt@vafer.org> wrote:

> >
> > But I guarantee that there will be other discussions:
> >   Wouldn't you add an "error" method to "Console"?
> > And there we go again...
>
>
> Not quite the same discussions though.
> And I was just saying: it works for me.
>
> As a side note: I personally think libraries should return errors - not log
> them. The error logging should happen in the app - not the library. If you
> have to log errors in the framework there is a good chance your API is not
> how it should be.
>

That's not a good answer for all libraries. For example, I am so happy the
HttpComponents does logging, it has saved me countless hours and headaches.

Gary



-- 
E-Mail: garydgregory@gmail.com | ggregory@apache.org
Java Persistence with Hibernate, Second Edition
<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message