mirror of
https://e.coding.net/circlecloud/YumCore.git
synced 2024-11-22 01:48:50 +00:00
feat: 添加格式化警告
Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
parent
b699068d6b
commit
9fa4f59b91
@ -62,7 +62,7 @@ public class Log {
|
||||
}
|
||||
|
||||
/**
|
||||
* 调试消息
|
||||
* 格式化调试消息
|
||||
*
|
||||
* @param msg
|
||||
* 消息
|
||||
@ -251,6 +251,18 @@ public class Log {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 格式化警告消息
|
||||
*
|
||||
* @param string
|
||||
* 消息
|
||||
* @param objects
|
||||
* 参数
|
||||
*/
|
||||
public static void w(final String string, final Object... objects) {
|
||||
logger.warning(String.format(string, objects));
|
||||
}
|
||||
|
||||
/**
|
||||
* Log a WARNING message.
|
||||
* <p>
|
||||
|
Loading…
Reference in New Issue
Block a user