For example, before including Spring Cloud Sleuth, people get something like this in their logs
2016-02-11 17:12:45.404 INFO [my-service-id,,] 85184 --- [nio-8080-exec-1] com.example.MySimpleComponentMakingARequest
with the 2 commas (which is where the traceID and spanID would show up) near the application name. But my logs initially looked like this
2016-02-11 17:12:45.404 INFO 85184 --- [nio-8080-exec-1] com.example.MySimpleComponentMakingARequest
In order to get the application name on my logs, I wrote the following code in application.properties
logging.pattern.level= %5p [${spring.application.name}]
and now my logs look like this (if you observe, it does not have the 2 commas next to the application name)
2016-02-11 17:12:45.404 INFO [my-service-id] 85184 --- [nio-8080-exec-1] com.example.MySimpleComponentMakingARequest
and even after including Sleuth, my logs look this way and the SpanID and TraceID aren't present. I am new to Spring Boot, please help me out by telling me what I am doing wrong.