commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <>
Subject Re: [all] logging practices in Commons components?
Date Mon, 04 Feb 2013 11:58:35 GMT
On 4 February 2013 11:50, Damjan Jovanovic <> wrote:
> Hi
> I see few Commons components do any logging, and net, io and csv don't
> even have any dependencies. Is this a recommended practice?

Low level libraries should generally not do any logging; the calling
application is responsible for this.

> Imaging prints to System.out (!!) instead of logging, and I am
> wondering if I should add slf4j or log4j2 instead?

It should not use System.out.

But nor should it really use logging.
Errors and warnings should be returned as exceptions or status codes.

Debug logging is different, but should not be enabled by default.

> Regards
> Damjan
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message