StaticLog rename to LogUtil

This commit is contained in:
Looly
2023-05-15 20:03:12 +08:00
parent d0556a4e48
commit 4670f21a8c
22 changed files with 98 additions and 56 deletions

View File

@@ -27,7 +27,7 @@ import org.dromara.hutool.core.func.SerSupplier;
import org.dromara.hutool.core.text.StrUtil;
import org.dromara.hutool.core.text.CharUtil;
import org.dromara.hutool.core.util.CharsetUtil;
import org.dromara.hutool.log.StaticLog;
import org.dromara.hutool.log.LogUtil;
import org.dromara.hutool.setting.props.Props;
import java.io.File;
@@ -232,7 +232,7 @@ public class Setting extends AbsSetting implements Map<String, String> {
}
});
this.watchMonitor.start();
StaticLog.debug("Auto load for [{}] listenning...", this.resource.getUrl());
LogUtil.debug("Auto load for [{}] listenning...", this.resource.getUrl());
} else {
IoUtil.closeQuietly(this.watchMonitor);
this.watchMonitor = null;
@@ -273,7 +273,7 @@ public class Setting extends AbsSetting implements Map<String, String> {
public Object getObjByGroup(final CharSequence key, final CharSequence group, final Object defaultValue) {
final String result = this.groupedMap.get(group, key);
if (result == null && logIfNull) {
StaticLog.debug("No key [{}] in group [{}] !", key, group);
LogUtil.debug("No key [{}] in group [{}] !", key, group);
}
return result;
}

View File

@@ -33,7 +33,7 @@ import org.dromara.hutool.core.reflect.ConstructorUtil;
import org.dromara.hutool.core.text.StrUtil;
import org.dromara.hutool.core.util.CharsetUtil;
import org.dromara.hutool.core.util.ObjUtil;
import org.dromara.hutool.log.StaticLog;
import org.dromara.hutool.log.LogUtil;
import java.io.File;
import java.io.IOException;
@@ -360,7 +360,7 @@ public final class Props extends Properties implements TypeGetter<CharSequence>
BeanUtil.setProperty(bean, StrUtil.subSuf(key, prefix.length()), entry.getValue());
} catch (final Exception e) {
// 忽略注入失败的字段(这些字段可能用于其它配置)
StaticLog.debug("Ignore property: [{}],because of: {}", key, e);
LogUtil.debug("Ignore property: [{}],because of: {}", key, e);
}
}