googleapis / googleapis/google-cloud-java
[java-logging-logback] Support jsonEncoder for structured logs with LoggingAppender
Offen
#12,010
0 Kommentare
0 Reaktionen
1 zugewiesene Person
Beansprucht von @cindy-peng
Auf GitHub ansehen
api: logging
type: feature request
- Vorherrschende Sprache
- Java
- Sterne
- 2.1k
- Forks
- 1.2k
- Ø Merge
- 1 T. 23 Std.
- Gemergte PRs (30 T.)
- 157
Beschreibung
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.
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.