fix log bug

This commit is contained in:
Looly
2020-09-16 13:52:26 +08:00
parent 667dbc2be7
commit f9f73e4c02
7 changed files with 59 additions and 12 deletions

View File

@@ -120,6 +120,7 @@ public class ConsoleLog extends AbstractLog {
return;
}
final Dict dict = Dict.create()
.set("date", DateUtil.now())
.set("level", level.toString())

View File

@@ -116,7 +116,7 @@ public class TinyLog extends AbstractLog {
if(null == t){
t = getLastArgumentIfThrowable(arguments);
}
LogEntryForwarder.forward(DEPTH, level, t, format, arguments);
LogEntryForwarder.forward(DEPTH, level, t, StrUtil.toString(format), arguments);
}
/**