Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support jsonEncoder for structured logs with LoggingAppender #1234

Open
bgood opened this issue Dec 27, 2023 · 0 comments
Open

Support jsonEncoder for structured logs with LoggingAppender #1234

bgood opened this issue Dec 27, 2023 · 0 comments
Assignees
Labels
api: logging Issues related to the googleapis/java-logging-logback API. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@bgood
Copy link

bgood commented Dec 27, 2023

Seems like the structured logs using the jsonEncoder aren't supported when also using LoggingAppender.

Without supporting structured logs the log messages when ingesting into Cloud Logging lose useful metadata like severity, so filtering and searching is very limited. Using a LoggingEventEnchancer can be used to create structured logs with custom code, however, that seems that option should be used for advanced use cases. For the basic use cases it would be ideal to just configure the jsonEncoder.

@product-auto-label product-auto-label bot added the api: logging Issues related to the googleapis/java-logging-logback API. label Dec 27, 2023
@kolea2 kolea2 added the type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. label Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: logging Issues related to the googleapis/java-logging-logback API. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

No branches or pull requests

3 participants