Author Topic: disable System.out  (Read 3453 times)

Offline athanazio

  • byte
  • *
  • Posts: 49
    • View Profile
    • http://www.athanazio.pro.br
disable System.out
« 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 {
}

}));

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
disable System.out
« Reply #1 on: December 02, 2006, 07:24:20 pm »
Logger.setLogLevel(); should do what you want.

Offline athanazio

  • byte
  • *
  • Posts: 49
    • View Profile
    • http://www.athanazio.pro.br
disable System.out
« Reply #2 on: December 02, 2006, 08:04:26 pm »
perfect !
Code: [Select]
Logger.setLogLevel(Logger.LL_ONLY_ERRORS);

thanks !!