commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Noel J. Bergman" <n...@devtech.com>
Subject DBCP should not be writing messages to stderr or stdout
Date Sat, 20 Sep 2003 16:13:32 GMT
> DBCP should not be writing messages to stderr or stdout
> dirk.verbeeck@pandora.be changed:
>          Resolution|                            |WONTFIX

> Like Shankar said, we should only add a dependency on a logging
> package if really needed.

> We could consider making more use of the logwriter on the datasource.

This should still be fixed.  As you say, at the least make more use of the
logwriter.  In the James code, I use an adapter subclass that bridges to
Avalon LogKit.  The default in BasicDataSource is System.out, anyway.

DBCP is used in server applications.  Logging is important.  The reason why
so many logging packages appeared is because logging wasn't part of Java
from the beginning, and it IS important.

I ought not have to call System.setOut / System.setErr() in order to get
output logged.  That would be a bad idea, anyway, without knowing that the
logging code doesn't use one of them to record a logging emergency.

	--- Noel


Mime
View raw message