未验证 提交 ac3adc51 编写于 作者: 付晓磊 提交者: GitHub

[ISSUE#2468] Fix DefaultLayout SimpleDateFormat Pattern (#2469)

上级 b69ad17e
...@@ -1201,7 +1201,7 @@ public class LoggingBuilder { ...@@ -1201,7 +1201,7 @@ public class LoggingBuilder {
public String format(LoggingEvent event) { public String format(LoggingEvent event) {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss,sss"); SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss,SSS");
String format = simpleDateFormat.format(new Date(event.timeStamp)); String format = simpleDateFormat.format(new Date(event.timeStamp));
sb.append(format); sb.append(format);
sb.append(" "); sb.append(" ");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册