Bug 33606 - System.err and System.out point to the same Stream
Summary: System.err and System.out point to the same Stream
Status: RESOLVED DUPLICATE of bug 18462
Alias: None
Product: Tomcat 5
Classification: Unclassified
Component: Catalina (show other bugs)
Version: 5.5.7
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-16 14:04 UTC by Oliver Henning
Modified: 2011-01-10 18:58 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Henning 2005-02-16 14:04:57 UTC
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.
Comment 1 Tim Funk 2005-02-16 14:45:49 UTC
if you wish - create a listener which changes calls the appropriate
System.setXXX calls with your own stream handlers.
Comment 2 Konstantin Kolinko 2011-01-10 18:58:26 UTC

*** This bug has been marked as a duplicate of bug 18462 ***