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

@@ -24,7 +24,7 @@ import org.dromara.hutool.cron.pattern.CronPattern;
import org.dromara.hutool.cron.task.InvokeTask;
import org.dromara.hutool.cron.task.RunnableTask;
import org.dromara.hutool.cron.task.Task;
import org.dromara.hutool.log.StaticLog;
import org.dromara.hutool.log.LogUtil;
import org.dromara.hutool.setting.Setting;
import java.io.Serializable;
@@ -221,7 +221,7 @@ public class Scheduler implements Serializable {
jobClass = group + CharUtil.DOT + jobClass;
}
final String pattern = entry.getValue();
StaticLog.debug("Load job: {} {}", pattern, jobClass);
LogUtil.debug("Load job: {} {}", pattern, jobClass);
try {
// issue#I5E7BM@Gitee自定义ID避免重复从配置文件加载
schedule("id_" + jobClass, pattern, new InvokeTask(jobClass));

View File

@@ -13,7 +13,7 @@
package org.dromara.hutool.cron.listener;
import org.dromara.hutool.cron.TaskExecutor;
import org.dromara.hutool.log.StaticLog;
import org.dromara.hutool.log.LogUtil;
import java.io.Serializable;
import java.util.ArrayList;
@@ -95,7 +95,7 @@ public class TaskListenerManager implements Serializable {
listener.onFailed(executor, exception);
}
}else{
StaticLog.error(exception, exception.getMessage());
LogUtil.error(exception, exception.getMessage());
}
}
}

View File

@@ -12,7 +12,7 @@
package org.dromara.hutool.cron.timingwheel;
import org.dromara.hutool.log.StaticLog;
import org.dromara.hutool.log.LogUtil;
import java.util.function.Consumer;
@@ -108,7 +108,7 @@ public class TimingWheel {
//当前时间轮可以容纳该任务 加入时间槽
final long virtualId = expiration / tickMs;
final int index = (int) (virtualId % wheelSize);
StaticLog.debug("tickMs: {} ------index: {} ------expiration: {}", tickMs, index, expiration);
LogUtil.debug("tickMs: {} ------index: {} ------expiration: {}", tickMs, index, expiration);
final TimerTaskList timerTaskList = timerTaskLists[index];
timerTaskList.addTask(timerTask);