tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Costin Manolache <cmanola...@yahoo.com>
Subject Re: System.out refs
Date Thu, 07 Aug 2003 14:12:14 GMT
Tim Funk wrote:

> When I was looking at o.a.c.core.ApplicationDispatcher.java, I noticed it
> used 2 different logging styles:
> 
> - Commons Logging
> - log() which tries to use context.getLogger(), and if null uses
> System.out
> 
> Shouldn't the log() method use commons-logging if context.getLogger()
> returns null?

Yes, it should.

Well, IMO the context logging should use commons-logging :-)


> Bonus q: If anything uses System.out (including printStackTrace()) and
> commons-logging is available - all System.outs should be converted to
> commons-logging calls?

Yes.

Costin

> 
> Are there any situations where using System.out is OK?
> 
> 
> -Tim



Mime
View raw message