Skip to content

Commit

Permalink
Mention that newer Log4j2 versions do not need additional fields (#379)
Browse files Browse the repository at this point in the history
  • Loading branch information
aabmass authored Oct 7, 2024
1 parent 9c7510b commit 6301056
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@
https://logging.apache.org/log4j/2.x/manual/json-template-layout.html#event-templates -->
<JsonTemplateLayout eventTemplateUri="classpath:GcpLayout.json">
<!-- Extend the included GcpLayout to include the trace and span IDs from Mapped
Diagnostic Context (MDC) so that Cloud Logging can correlate Logs and Spans -->
Diagnostic Context (MDC) so that Cloud Logging can correlate Logs and Spans
Since log4j2 2.24.0, GcpLayout.json already includes trace context logging from MDC and
the below additional fields are no longer needed -->
<EventTemplateAdditionalField
key="logging.googleapis.com/trace"
format="JSON"
Expand Down

0 comments on commit 6301056

Please sign in to comment.