# Logback Integration This module integrates instrumentation with Logback by injecting the trace ID and span ID from a mounted span using a custom Logback appender. To use it, add the module to your application's runtime classpath and add the appender to your `logback.xml`. **Maven** ```xml io.opentelemetry.instrumentation opentelemetry-logback-1.0 0.17.0-alpha ``` **Gradle** ```kotlin dependencies { runtimeOnly("io.opentelemetry.instrumentation:opentelemetry-logback-1.0:0.17.0-alpha") } ``` **logback.xml** ```xml %d{HH:mm:ss.SSS} trace_id=%X{trace_id} span_id=%X{span_id} trace_flags=%X{trace_flags} %msg%n ... ``` Logging events will automatically have context information from the span context injected. The following attributes are available for use: - `trace_id` - `span_id` - `trace_flags`