1
0
mirror of https://e.coding.net/circlecloud/YumCore.git synced 2024-12-25 07:08:52 +00:00

refactor: 调整调试日志输出

Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
502647092 2017-07-30 14:39:58 +08:00
parent 76166e88e4
commit 2829e298d5
2 changed files with 10 additions and 5 deletions

View File

@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>pw.yumc</groupId>
<artifactId>YumCore</artifactId>
<version>1.8.2</version>
<version>1.8.3</version>
<build>
<finalName>${project.artifactId}</finalName>
<plugins>

View File

@ -115,7 +115,9 @@ public class Log {
* 参数
*/
public static void d(String msg, Object... object) {
d(String.format(msg, object));
if (debug) {
logger.info(String.format(msg, object));
}
}
/**
@ -166,7 +168,9 @@ public class Log {
* 参数
*/
public static void fd(String msg, Object... object) {
fd(String.format(msg, object));
if (fullDebug) {
logger.info("[DEBUG] " + String.format(msg, object));
}
}
/**
@ -301,7 +305,8 @@ public class Log {
/**
* Log a SEVERE message.
* <p>
* If the logger is currently enabled for the SEVERE message level then the given message is forwarded to all the registered output Handler objects.
* If the logger is currently enabled for the SEVERE message level then the
* given message is forwarded to all the registered output Handler objects.
*
* @param msg
* The string message (or a key in the message catalog)
@ -367,7 +372,7 @@ public class Log {
* 参数
*/
public static void w(String string, Object... objects) {
logger.warning(String.format(string, objects));
w(String.format(string, objects));
}
/**