Change the dateformat of logs to yyyy-MM-dd HH:mm:ss.SSS (#165)

This commit is contained in:
Anders Guo 2022-04-26 07:54:10 +08:00 committed by GitHub
parent 88c4c71598
commit 8ae57d25a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -11,6 +11,7 @@ Release Notes.
* Add servicecomb-2.x plugin and Testcase.
* Fix NPE in gateway plugin when the timer triggers webflux webclient call.
* Add an optional plugin, trace-sampler-cpu-policy-plugin, which could disable trace collecting in high CPU load.
* Change the dateformat of logs to `yyyy-MM-dd HH:mm:ss.SSS`(was `yyyy-MM-dd HH:mm:ss:SSS`).
#### Documentation

View File

@ -31,7 +31,7 @@ public class DateConverter implements Converter {
@Override
public String convert(LogEvent logEvent) {
return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss:SSS").format(new Date());
return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS").format(new Date());
}
@Override