|
|
|
@ -3,6 +3,7 @@ package com.xxl.job.core.log;
|
|
|
|
|
import org.slf4j.Logger;
|
|
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
|
|
|
|
|
|
import java.text.MessageFormat;
|
|
|
|
|
import java.text.SimpleDateFormat;
|
|
|
|
|
import java.util.Date;
|
|
|
|
|
|
|
|
|
@ -45,4 +46,17 @@ public class XxlJobLogger {
|
|
|
|
|
logger.warn("[{}]: {}", logFileName, formatAppendLog);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* append log with pattern
|
|
|
|
|
*
|
|
|
|
|
* @
|
|
|
|
|
*
|
|
|
|
|
* @param appendLogPattern like "aaa {0} bbb {1} ccc"
|
|
|
|
|
* @param appendLogArguments like "111, true"
|
|
|
|
|
*/
|
|
|
|
|
public static void log(String appendLogPattern, Object ... appendLogArguments) {
|
|
|
|
|
String appendLog = MessageFormat.format(appendLogPattern, appendLogArguments);
|
|
|
|
|
log(appendLog);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|