Is there a way to get the Log of Kryonet?

868 views Asked by At

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

1

There are 1 answers

1
Jon Skeet On BEST ANSWER

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());