[Source] annoyance/problem: System.out trapping

Don Brutzman brutzman at nps.edu
Mon Aug 20 22:24:17 PDT 2012


On 8/20/2012 9:59 PM, Alan Hudson wrote:
> [...]
> this is really not different then something like log4j that puts the whole class name into the stream.

One difference:  Xj3D is putting in the text with every call to print,
not just println line feeds.  This results in clobbered outputs like

[204] System.out: -0.1,	System.out: 0.0,	System.out: 0.0System.out: ,
[205] System.out: -0.0924,	System.out: 0.0,	System.out: 0.0383System.out: ,
[206] System.out: -0.0707,	System.out: 0.0,	System.out: 0.0707System.out: ,
[207] System.out: -0.0383,	System.out: 0.0,	System.out: 0.0924,	System.out: 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

> Nothing I know of depends on the System.out string being there so we could shorten it.  The redirect are necessary to put things on console windows instead of the sometimes unfindable system console.  We ran into this when running from a bat file users couldnt give us bug reports.

Sensible.  Am hoping we can make such console trapping a deliberate call
for applications where it is needed, perhaps even via a startup parameter
for the batch file invocation.  Otherwise, am hoping that we can omit it
from other Xj3D usage cases without breaking your important base case.

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