Closed XiaotianZha closed 1 month ago
This is my log pattern
<property name="log.pattern" value="%d{yyyy-MM-dd'T'HH:mm:ss.SSSXXX} %X{TrackingId} [%thread] %-5level %logger{10} %msg%n" />
and logs like
2024-07-16T14:34:38.383+08:00 [http-nio-8081-exec-1] INFO o.s.w.s.DispatcherServlet Completed initialization in 1 ms
It works fine until I upgrade to JDK21 and tried to use virtual thead. The thread name is empty like this:
2024-07-16T14:33:18.503+08:00 [] INFO o.s.w.s.DispatcherServlet Completed initialization in 1 ms
Version:
Finally I upgrade logback to 1.5.0
This is my log pattern
and logs like
It works fine until I upgrade to JDK21 and tried to use virtual thead. The thread name is empty like this:
Version: