Change the dateformat of logs to yyyy-MM-dd HH:mm:ss.SSS (#165)
This commit is contained in:
parent
88c4c71598
commit
8ae57d25a0
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue