mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
add ConsoleColorLog
This commit is contained in:
6
hutool-log/src/test/java/cn/hutool/log/test/StaticLogTest.java
Normal file → Executable file
6
hutool-log/src/test/java/cn/hutool/log/test/StaticLogTest.java
Normal file → Executable file
@@ -1,13 +1,11 @@
|
||||
package cn.hutool.log.test;
|
||||
|
||||
import cn.hutool.log.LogFactory;
|
||||
import cn.hutool.log.dialect.console.ConsoleColorLog;
|
||||
import cn.hutool.log.StaticLog;
|
||||
import cn.hutool.log.dialect.console.ConsoleColorLogFactory;
|
||||
import cn.hutool.log.dialect.console.ConsoleLogFactory;
|
||||
import org.junit.Test;
|
||||
|
||||
import cn.hutool.log.StaticLog;
|
||||
|
||||
public class StaticLogTest {
|
||||
@Test
|
||||
public void test() {
|
||||
@@ -24,7 +22,5 @@ public class StaticLogTest {
|
||||
StaticLog.error("This is static {} log", "error");
|
||||
StaticLog.warn("This is static {} log", "warn");
|
||||
StaticLog.trace("This is static {} log", "trace");
|
||||
ConsoleColorLog.setWarnColor(31);
|
||||
StaticLog.warn("This is static {} log", "warn");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user