1
0
mirror of https://e.coding.net/circlecloud/YumCore.git synced 2024-11-25 02:18:50 +00:00

feat: 添加格式化警告

Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
502647092 2016-09-12 19:23:33 +08:00
parent b699068d6b
commit 9fa4f59b91

View File

@ -62,7 +62,7 @@ public class Log {
} }
/** /**
* 调试消息 * 格式化调试消息
* *
* @param msg * @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. * Log a WARNING message.
* <p> * <p>