You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2005/02/16 14:04:57 UTC

DO NOT REPLY [Bug 33606] New: - System.err and System.out point to the same Stream

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=33606>.
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=33606

           Summary: System.err and System.out point to the same Stream
           Product: Tomcat 5
           Version: 5.5.7
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: oliver.henning@aloba.ch


When Tomcat starts up, both System.out and System.err are redirected to the
same PrintStream, an instance of o.a.tomcat.util.log.SystemLogHandler, which
itself wraps System.out
This happens quite early in o.a.c.startup.Catalina.load()
>From then onwards no distinguish can be made between System.out.print()'s and
System.err.print()'s. The original 'System'-Error-Stream is lost.

Specifically when starting Tomcat within Eclipse (while developing/debugging a
Web-App), then the nice 'red' printed error-Stream instead of the 'blue' printed
stdout-stream is useless.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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