You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
460 B
Java
21 lines
460 B
Java
package com.ruoyi.cron;
|
|
|
|
import cn.hutool.core.exceptions.ExceptionUtil;
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
|
public interface TaskLog {
|
|
|
|
void log(String msg);
|
|
|
|
default void log(String msg,Object... args) {
|
|
log(StrUtil.format(msg,args));
|
|
}
|
|
default void log(String msg, Throwable t) {
|
|
log(msg+"\n"+ ExceptionUtil.stacktraceToString(t));
|
|
}
|
|
|
|
default void log(String msg, Throwable t,Object... args){
|
|
log(StrUtil.format(msg,args),t);
|
|
}
|
|
}
|