Domanda

I want to get the Console Log of the Kryonet as String so that i can display it in a TextArea. Now my question, is there a way to do it?

I'm stuck at this problem..

Any suggestions would be so much appreciated. Thanks

È stato utile?

Soluzione

From the Kryonet documentation:

KryoNet makes use of the low overhead, lightweight MinLog logging library.

So looking at MinLog, which is just one source file, you just need to extend Logger to override the print method, and then call

Log.setLogger(new DifferentLoggerImplementation());
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top