* Dependency the toolkit, such as using maven or gradle ```xml org.apache.skywalking skywalking-toolkit-logback-1.x {project.release.version} ``` * set `%tid` in `Pattern` section of logback.xml ```xml %d{yyyy-MM-dd HH:mm:ss.SSS} [%tid] [%thread] %-5level %logger{36} -%msg%n ``` * When you use `-javaagent` to active the sky-waking tracer, logback will output **traceId**, if it existed. If the tracer is inactive, the output will be `TID: N/A`.