mirror of
https://e.coding.net/circlecloud/YumCore.git
synced 2024-11-21 01:38:51 +00:00
refactor: 调整调试日志输出
Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
parent
76166e88e4
commit
2829e298d5
2
pom.xml
2
pom.xml
@ -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>
|
||||
|
@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user