www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: athanazio on December 02, 2006, 06:15:18 pm

Title: disable System.out
Post by: athanazio on December 02, 2006, 06:15:18 pm
Is there a way to disable the System.out messages from jpct ? for exemple in the last implementation that I made I change a texture all the time, with replaceTexture(), and receive a lot of System.out messages ... is there a way to disable all at Config class ?

thanks

I tried to force a remotion of the System.out, but without sucess ...

Code: [Select]
System.setOut(new PrintStream(new OutputStream() {
public void write(int i) {
}

public void write(byte[] b) throws IOException {
}

public void write(byte[] b, int off, int len) throws IOException {
}

}));
Title: disable System.out
Post by: EgonOlsen on December 02, 2006, 07:24:20 pm
Logger.setLogLevel(); should do what you want.
Title: disable System.out
Post by: athanazio on December 02, 2006, 08:04:26 pm
perfect !
Code: [Select]
Logger.setLogLevel(Logger.LL_ONLY_ERRORS);

thanks !!