mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
change method name
This commit is contained in:
@@ -82,6 +82,6 @@ public class ConsoleColorLog extends ConsoleLog {
|
||||
}
|
||||
|
||||
final String template = AnsiEncoder.encode(COLOR_TIME, "[%s]", colorFactory.apply(level), "[%-5s]%s", COLOR_CLASSNAME, "%-30s: ", COLOR_NONE, "%s%n");
|
||||
System.out.format(template, DateUtil.now(), level.name(), " - ", ClassUtil.getShortClassName(getName()), StrUtil.format(format, arguments));
|
||||
System.out.format(template, DateUtil.formatNow(), level.name(), " - ", ClassUtil.getShortClassName(getName()), StrUtil.format(format, arguments));
|
||||
}
|
||||
}
|
||||
|
@@ -122,7 +122,7 @@ public class ConsoleLog extends AbstractLog {
|
||||
|
||||
|
||||
final Dict dict = Dict.create()
|
||||
.set("date", DateUtil.now())
|
||||
.set("date", DateUtil.formatNow())
|
||||
.set("level", level.toString())
|
||||
.set("name", this.name)
|
||||
.set("msg", StrUtil.format(format, arguments));
|
||||
|
Reference in New Issue
Block a user