I am trying to get appName, traceid,spanid in my logs using sleuth. I am aware that it can be done using logback. But I am not able to get these using log4j2. Can somebody help me how to do this.
Asked
Active
Viewed 242 times
0
-
What have you tried in your log4j ? can you share what you have tried and what is not working ? – Rishal Aug 04 '22 at 08:59
-
Did you try this: https://stackoverflow.com/questions/48774345/spring-cloud-sleuth-log4j2 https://stackoverflow.com/questions/54389110/why-sleuth-doesnt-work-with-log4j2-in-my-spring-boot-service https://stackoverflow.com/questions/65822803/how-to-get-trace-id-and-span-id-in-the-log4j2-in-the-format-traceid-spanid – TomStroemer Aug 04 '22 at 09:43
-
Yes,but no success. – localhost Aug 05 '22 at 07:42