disable System.out

Started by athanazio, December 02, 2006, 06:15:18 PM

Previous topic - Next topic

athanazio

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 ...

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 {
}

}));

EgonOlsen

Logger.setLogLevel(); should do what you want.

athanazio

perfect !
Logger.setLogLevel(Logger.LL_ONLY_ERRORS);

thanks !!