commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 30375] - Use commons-logging for debugging instead of System.out.println
Date Fri, 10 Sep 2004 02:35:34 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30375>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30375

Use commons-logging for debugging instead of System.out.println





------- Additional Comments From Tam@SiuLung.com  2004-09-10 02:35 -------
-        System.out.println("AbandonedObjectPool is used (" + this + ")");
-        System.out.println("   LogAbandoned: " + config.getLogAbandoned());
-        System.out.println("   RemoveAbandoned: " + config.getRemoveAbandoned());
-        System.out.println("   RemoveAbandonedTimeout: " +
config.getRemoveAbandonedTimeout());
+        log.error("AbandonedObjectPool is used (" + this + ")");
+        log.error("   LogAbandoned: " + config.getLogAbandoned());
+        log.error("   RemoveAbandoned: " + config.getRemoveAbandoned());
+        log.error("   RemoveAbandonedTimeout: " +
config.getRemoveAbandonedTimeout());

I suppose they are info, or even debug.


-                    System.err.println("Could not parse
defaultTransactionIsolation: " + value);
-                    System.err.println("WARNING: defaultTransactionIsolation
not set");
-                    System.err.println("using default value of database driver");
+                    log.error("Could not parse defaultTransactionIsolation: " +
value);
+                    log.error("WARNING: defaultTransactionIsolation not set");
+                    log.error("using default value of database driver");

I think they are warning instead.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message