Release Notes
%X{trace_id} and %X{span_id} fields respectively. If there is no TraceID or SpanID in the context, it will not affect the output of the entire line of logs.log4j.appender.warn.layout=org.apache.log4j.PatternLayoutlog4j.appender.warn.layout.ConversionPattern=traceId: %X{trace_id} spanId: %X{span_id} - %m%n
<PatternLayout pattern="traceId: %X{trace_id} spanId: %X{span_id} - %m%n"/>
<PatternLayout><Pattern>traceId: %X{trace_id} spanId: %X{span_id} - %m%n</Pattern></PatternLayout>
<Layout type="PatternLayout" pattern="traceId: %X{trace_id} spanId: %X{span_id} - %m%n"/>
<encoder><pattern>traceId: %X{trace_id} spanId: %X{span_id} %msg%n</pattern></encoder>


Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback