Skip to content

Support jsonEncoder for structured logs with LoggingAppender #1234

Open
@bgood

Description

@bgood

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.

Metadata

Metadata

Assignees

Labels

api: loggingIssues related to the googleapis/java-logging-logback API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions