This commit is contained in:
Looly
2022-04-28 03:20:23 +08:00
parent 17cd183722
commit 8e2c06c671
96 changed files with 175 additions and 167 deletions

View File

@@ -10,7 +10,7 @@ import cn.hutool.log.level.WarnLog;
/**
* 日志统一接口
*
*
* @author Looly
*
*/

View File

@@ -16,7 +16,7 @@ import cn.hutool.log.LogFactory;
*
*/
public class JdkLogFactory extends LogFactory{
public JdkLogFactory() {
super("JDK Logging");
readConfig();
@@ -31,7 +31,7 @@ public class JdkLogFactory extends LogFactory{
public Log createLog(Class<?> clazz) {
return new JdkLog(clazz);
}
/**
* 读取ClassPath下的logging.properties配置文件
*/
@@ -42,7 +42,7 @@ public class JdkLogFactory extends LogFactory{
System.err.println("[WARN] Can not find [logging.properties], use [%JRE_HOME%/lib/logging.properties] as default!");
return;
}
try {
LogManager.getLogManager().readConfiguration(in);
} catch (Exception e) {