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 13:09:35 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 andrew.chapman@clicktools.com  2003-04-22 13:09 -------
Redirection of System.out and System.err in 
org.apache.catalina.startup.Catalina.start() prevents any other application 
(for instance an IDE) from redirecting System.out and System.err. It also 
redirects them to the same output (the standard system output stream) 
preventing any differentiation of the two streams.

I cannot see any value in creating a custom SystemLogHandler in this instance 
the attached patch removes the following code.

>> SystemLogHandler log = new SystemLogHandler(System.out);
>> System.setOut(log);
>> System.setErr(log);

---------------------------------------------------------------------
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