Skip to content

Commit d19bab7

Browse files
author
magiclu550
committed
[JSMOD@2_489_COMMIT] font format
1 parent 4281dbe commit d19bab7

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

JSMod2Core/src/main/java/cn/jsmod2/core/log/ServerLogger.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ public void debug(String message, String prefix, String suffix) {
151151

152152
@Override
153153
public void error(String message, String prefix, String suffix) {
154-
String msg = LogFormat.format(message,"ERROR",RED,prefix,true)+suffix;
154+
String msg = LogFormat.format(LogFormat.textFormat(message,RED),"ERROR",RED,prefix,true)+suffix;
155155
try {
156156
consoleOutputStream.write(getSimpleMessage(msg));
157157
} catch (IOException ignored) {

JSMod2Core/src/main/java/cn/jsmod2/core/utils/LogFormat.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public static String format(String message, String type, Ansi.Color color,String
5959
}
6060

6161
public static String format(String message, String type, Ansi.Color color,String prefix,boolean controlMain){
62-
return prefix+fg(MAGENTA)+dateTimeFormatter.format(LocalDateTime.now())+fg(DEFAULT)+"["+fg(color)+(controlMain?control(type,Control.GLISTEN):type)+fg(DEFAULT)+"\t]"+fg(BLUE)+" "+message;
62+
return prefix+fg(MAGENTA)+dateTimeFormatter.format(LocalDateTime.now())+fg(DEFAULT)+"["+fg(color)+(controlMain?control(type,Control.GLISTEN):type)+fg(DEFAULT)+"\t]"+fg(DEFAULT)+" "+message;
6363
//return ansi().eraseScreen().a(prefix).fg(MAGENTA).a(dateTimeFormatter.format(LocalDateTime.now())).fg(DEFAULT).a("[").fg(color).a(type).fg(DEFAULT).a("\t]").fg(BLUE).a(" "+message).reset();
6464
}
6565

0 commit comments

Comments
 (0)