Skip to content

Commit

Permalink
修改log时间为青色
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperIceCN committed May 5, 2023
1 parent da33cbb commit 8a0c6f1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>cn.powernukkitx</groupId>
<artifactId>PNX-CLI</artifactId>
<version>0.1.2</version>
<version>0.1.3</version>

<properties>
<maven.compiler.source>17</maven.compiler.source>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/cn/powernukkitx/cli/share/CLIConstant.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import java.util.List;

public interface CLIConstant {
String version = "0.1.2";
String version = "0.1.3";
List<String> authors = List.of("超神的冰凉");
File userDir = new File(System.getProperty("user.dir"));
File programDir = new File(OSUtils.getProgramDir());
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/cn/powernukkitx/cli/util/Logger.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ private Logger() {

public static void info(String msg) {
System.out.println(ansi().fgBrightBlue().a(LocalDateTime.now().format(formatter))
.fgDefault().a(" [").fgBlue().a("INFO ").fgDefault().a("] ").fgDefault().a(msg).reset());
.fgDefault().a(" [").fgCyan().a("INFO ").fgDefault().a("] ").fgDefault().a(msg).reset());
}

public static void info(Ansi msg) {
System.out.println(ansi().fgBrightBlue().a(LocalDateTime.now().format(formatter))
.fgDefault().a(" [").fgBlue().a("INFO ").fgDefault().a("] ").fgDefault().a(msg).reset());
.fgDefault().a(" [").fgCyan().a("INFO ").fgDefault().a("] ").fgDefault().a(msg).reset());
}

public static void warn(String msg) {
Expand Down

0 comments on commit 8a0c6f1

Please sign in to comment.