[Source] annoyance/problem: System.out trapping
Don Brutzman
brutzman at nps.edu
Mon Aug 20 12:49:50 PDT 2012
Annoyance: every invocation of System.out.print (once captured)
are prepended with the string "System.out: " which makes console
output barely readable.
I would only expect such activity when building a new application.
Is it always occurring? Problem: this may be why Xj3D console messages
are typically not found when Xj3D is embedded in another application;
the output console might be getting intercepted from Xj3D and then
never handed back to the parent application.
Preferred resolution: avoid trapping System.out
I believe this is occurring in
org.xj3d.ui.awt.widgets.SwingConsoleWindow.java
redirectSystemMessages()
but did not want to change that due to the possibility of unintended
side effects.
all the best, Don
--
Don Brutzman Naval Postgraduate School, Code USW/Br brutzman at nps.edu
Watkins 270, MOVES Institute, Monterey CA 93943-5000 USA +1.831.656.2149
X3D graphics, virtual worlds, navy robotics http://faculty.nps.edu/brutzman
More information about the Source
mailing list