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

关于Log #29

Closed
drogbababa opened this issue Jul 12, 2017 · 2 comments
Closed

关于Log #29

drogbababa opened this issue Jul 12, 2017 · 2 comments
Labels

Comments

@drogbababa
Copy link

程序中出现[WARN] Can not find [logging.properties], use [%JRE_HOME%/lib/logging.properties] as default!这行警告,请问这个问题如何解决?

@looly looly added the question label Jul 13, 2017
@looly
Copy link
Member

looly commented Jul 13, 2017

这是因为你没有引入任何第三方日志框架。Hutool默认会使用JDK Logging做为其日志实现。出现这句话的意思是你没有在你的ClassPath下放logging.properties(JDK Logging的配置文件),系统默认默认读取JDK目录下的默认配置文件。你可以考虑在ClassPath下放一个logging.properties(就是src/main/resources)下。

配置文件模板见:https://github.com/looly/hutool/blob/master/hutool-log/src/test/resources/logging.properties

其它日志框架的配置文件模板见:https://github.com/looly/hutool/tree/master/hutool-log/src/test/resources

@looly looly closed this as completed Jul 13, 2017
@drogbababa
Copy link
Author

多谢!!

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

No branches or pull requests

2 participants