1
0
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:
502647092 2016-09-13 14:37:29 +08:00
parent 9fa4f59b91
commit 5d8b1eb430

View File

@ -45,10 +45,30 @@ public class Log {
*/ */
public static void console(final String... msg) { public static void console(final String... msg) {
for (final String str : msg) { for (final String str : msg) {
console.sendMessage(prefix + str); console(str);
} }
} }
/**
* Sends console a message
*
* @param message
* Message to be displayed
*/
public static void console(final String msg) {
console.sendMessage(prefix + msg);
}
/**
* Sends console a message
*
* @param message
* Message to be displayed
*/
public static void console(final String msg, final Object... object) {
console.sendMessage(prefix + String.format(msg, object));
}
/** /**
* 调试消息 * 调试消息
* *