qos-ch/logback-contrib

Target Java 8 and use DateTimeFormatter

chibenwa opened this issue · 0 comments

In addition of the support of old java version, java.time API introduced DateTimeFormatter that is far superior compared to the SimpleDateFormatter used in JsonLayoutBase.

For instance, DateTimeFormatter is thread safe thus could be initiated at startup and reused.

This would enable some performance gains as this flame graph shows:

Screenshot from 2021-07-01 14-04-29