tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 18462] - System.err gets overriden to output to System.out
Date Tue, 22 Apr 2003 15:26:18 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18462>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18462

System.err gets overriden to output to System.out





------- Additional Comments From glenn@apache.org  2003-04-22 15:26 -------
Tomcat as a container is used in a number of different ways.
Some use it with an IDE as you do, but there are many others who use
it as a production web application server.

The redirection of System.out and System.err is there to support those
who run Tomcat as a production application server.  It does this so that
application code which generates output to stdout or stderr gets placed in
the appropriate tomcat log for the application.  This makes it easier to
track down problems for a production application because all output generated
by the application will be in the same log.

Your patch is not acceptable because it would break this behaviour for
those who need it on a production server.

You might consider researching this further and submitting a patch
that will work for both cases.  Perhaps a test to not execute the code
if Tomcat is running embedded.  Or a new attribute to disable this.

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


Mime
View raw message