[Source] annoyance/problem: System.out trapping

Alan Hudson alan at shapeways.com
Tue Aug 21 08:39:29 PDT 2012


On 8/20/2012 10:24 PM, Don Brutzman wrote:
> 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:
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
I don't remember seeing this but if its just missing println  that's 
fine as a change.
>> 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.
there is already a flag some place for noredirect.  Check apps/browser 
for it.

-- 
Alan Hudson, Director 3D Tools
www.shapeways.com




More information about the Source mailing list