googleapis / googleapis/google-cloud-java

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

未关闭
#12,010 0 条评论 0 个 reaction 已指派 1 人 已被 @cindy-peng 认领 在 GitHub 查看
api: logging type: feature request
主要语言
Java
星标
2.1k
派生
1.2k
平均合并
1 天 23 小时
30 天内合并 PR
154

描述

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.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。