Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
huayunliufeng opened this issue May 9, 2024 · 2 comments

Comments

@huayunliufeng
Copy link

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.

@AlmasB
Copy link
Owner

AlmasB commented May 12, 2024

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)

@huayunliufeng
Copy link
Author

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants