Turn off Debugging

Hello. Having all those lines of text print out when a scene is first rendered and wonderful, when I am debugging. But when I am ready to “ship out” the app, is there a way to turn that off so all that doesn’t print?

I do like this:


assert info("Hello World!");

and


public boolean info(String info) {
     System.out.println(info);
     return true;
}

I hope it helps :slight_smile:

[quote]I do like this:


assert info("Hello World!");

and


public boolean info(String info) {
     System.out.println(info);
     return true;
}

I hope it helps :slight_smile:
[/quote]
Hmm, not sure what that has to do with my question. I just want to turn off the Xith3D console output that happens when you run an application.

Oh, i thought you ment you did own outputs :P.

I don’t know how to remove that output,
but if someone do have a clue please reply.

You’d have to edit the source to do this. I believe I’ve seen a request to have the default codebase comment all that stuff out, but I cant recall if an official bug was made.

You could probably even go in and comment it out yourself and re-submit it and I’m sure Yuri or someone would add it.

I would +1 a move to “assert” the debugging statements as makes it very easy to remove the statements at runtime (an important difference to just disabling the output using log4j is that the code is never executed, so you don’t even waste time doing the boolean comparison and any string concatenation which is important especially within tight loops).

While I agree that some of the initial output could be suppressed in this way - I would strongly advise against suppressing the OpenGL driver information strings as people do have OpenGL driver issues and when they post something like “OpenGL 1.0 - Microsoft” it’s instantly obvious (to us) what they have to do.

Will.