How to get trace id and span id in the log4j2, not the in the [traceId, spanId ] ? Expected Output : [APPNAME,5a59b2372d9a3814,5a59b2372d9a3814] Actual Output : [logLevel=ERROR] — 2021-01-21 11:30:32,489 +0530 — http-nio-8080-exec-1 com.springboot.test.aspect.MyAspect — asnId= – message=”Logging key:”, traceId=f19556b82d98bf86, executionTimeSeconds=23 My log4j2 : tried adding below commented property but not seeing trace id in logs Aspect class : In