mirror of
https://e.coding.net/circlecloud/YumCore.git
synced 2025-09-01 11:26:56 +00:00
@ -49,6 +49,18 @@ public class Log {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 调试消息
|
||||
*
|
||||
* @param msg
|
||||
* 消息
|
||||
* @param object
|
||||
* 参数
|
||||
*/
|
||||
public static void d(final String msg, final Object... object) {
|
||||
debug(String.format(msg, object));
|
||||
}
|
||||
|
||||
/**
|
||||
* 调试消息
|
||||
*
|
||||
@ -88,6 +100,18 @@ public class Log {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 调试消息
|
||||
*
|
||||
* @param e
|
||||
* 异常
|
||||
*/
|
||||
public static void debug(final Throwable e) {
|
||||
if (debug) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return 获得插件前缀
|
||||
*/
|
||||
|
Reference in New Issue
Block a user