add thread-name. (#2209)

This commit is contained in:
Jared Tan 2019-01-25 23:21:47 +08:00 committed by 吴晟 Wu Sheng
parent b5b69000ca
commit 5914a2b582
1 changed files with 1 additions and 0 deletions

View File

@ -67,6 +67,7 @@ public class EasyLogger implements ILog {
String format(LogLevel level, String message, Throwable t) {
return StringUtil.join(' ', level.name(),
new SimpleDateFormat("yyyy-MM-dd HH:mm:ss:SSS").format(new Date()),
Thread.currentThread().getName(),
targetClass.getSimpleName(),
": ",
message,