FXGL icon indicating copy to clipboard operation
FXGL copied to clipboard

How to turn off the default logging feature and use a logging framework such as logback?

Open huayunliufeng opened this issue 1 year ago • 1 comments

The latest version of the default log printing does not meet the requirements, and there are too many cut files. How to close it or configure it in third-party logging frameworks such as logback? Currently, there are two coexisting situations, which is not what I want.

huayunliufeng avatar May 09 '24 07:05 huayunliufeng

Hi,

This might help:

Logger.removeAllOutputs()

In theory, this should remove all default / internal logging.

If you just want to format it differently, then after removing all outputs, you can try adding your own:

Logger.addOutput(custom logger output, log level)

AlmasB avatar May 12 '24 08:05 AlmasB

thanks

huayunliufeng avatar May 21 '24 01:05 huayunliufeng