You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "jvz (via GitHub)" <gi...@apache.org> on 2025/07/31 19:51:27 UTC
[PR] Adjust GcpLayout JSON to latest format (#3586) [logging-log4j2]
jvz opened a new pull request, #3867:
URL: https://github.com/apache/logging-log4j2/pull/3867
* Adjust GcpLayout JSON to latest format
First, it formats the log timestamp field to the correct format recognized by Fluent-Bit (component of Google Cloud Logging) and Google Ops Agent.
Secondly, severity field now must be prefixed with logging.googleapis.com.
Third, counter cannot be used for insertId as it is duplicated on different threads.
And the last but not the least, exception, thread and logger fields are pretty standard when logging via Logback's JSON layout and Google's Spring GCP libraries. Field name changes now match these other loggers.
* revert severity changes, remove insertId
* Remove insertid from tests
* fix spotless error
* Switch exception field to use exception resolver
* try to fix timestamp tests
* Fix tests with empty exceptions
* Add changelog
* Improve changelog.
---------
Cherry pick of https://github.com/apache/logging-log4j2/pull/3586 to 3.x.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Adjust GcpLayout JSON to latest format (#3586) [logging-log4j2]
Posted by "jvz (via GitHub)" <gi...@apache.org>.
jvz merged PR #3867:
URL: https://github.com/apache/logging-log4j2/pull/3867
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org