googleapis / googleapis/google-cloud-java

[java-logging-logback] Support jsonEncoder for structured logs with LoggingAppender

Open
#12,010 0 comments 0 reactions 1 assignee Claimed by @cindy-peng View on GitHub
api: logging type: feature request
Dominant language
Java
Stars
2.1k
Forks
1.2k
Avg merge
1d 23h
Merged PRs (30d)
154

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.