always print out context path of testable agent

This commit is contained in:
金戟
2021-05-03 10:56:36 +08:00
parent 7cda8ffd36
commit 4ea97fe13f
2 changed files with 11 additions and 0 deletions

View File

@@ -44,6 +44,14 @@ public class LogUtil {
write(text);
}
public static void info(String msg, Object... args) {
String text = String.format("[INFO] " + msg + "\n", args);
if (currentLogLevel.level >= LogLevel.DEFAULT.level) {
System.out.print(text);
}
write(text);
}
public static void warn(String msg, Object... args) {
String text = String.format("[WARN] " + msg + "\n", args);
if (currentLogLevel.level >= LogLevel.DEFAULT.level) {