On Fri, Jun 10, 2016 at 3:55 AM, Torsten Curdt <tcu...@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: garydgreg...@gmail.com | ggreg...@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

Reply via email to