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

为什么APIJSON不使用Logger而是要System.out作为日志输出 #448

Open
wzqiang1332 opened this issue Oct 7, 2022 · 1 comment
Open
Labels
Enhancement 增强 增强功能、提高性能等 help wanted 请求帮助

Comments

@wzqiang1332
Copy link

System.out使用PrintStream, 会有synchronized锁,对性能可能有比较大的影响。即使不想添加其他依赖使用第三方的日志,也可以使用jdk自带的日志框架,java.util.logging。

@TommyLemon
Copy link
Collaborator

TommyLemon commented Oct 18, 2022

感谢反馈和建议,华为工程师提过类似问题,可以看看解答,上线前 Log.DEBUG = false,绝大部分日志都不会打印,对性能影响可以忽略不计。
#208

考虑 java.util.logging 替代目前的实现,可以在建议收集箱加个评论
#37

@TommyLemon TommyLemon added Enhancement 增强 增强功能、提高性能等 help wanted 请求帮助 labels Oct 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement 增强 增强功能、提高性能等 help wanted 请求帮助
Projects
None yet
Development

No branches or pull requests

2 participants