googleapis / googleapis/google-cloud-java

[java-logging] Sample: update quickstart snippet

Offen
#11,924 1 Kommentar 0 Reaktionen 1 zugewiesene Person Beansprucht von @arbrown Auf GitHub ansehen
api: logging good first issue priority: p3 samples type: feature request
Vorherrschende Sprache
Java
Sterne
2.1k
Forks
1.2k
Ø Merge
1 T. 23 Std.
Gemergte PRs (30 T.)
154

Beschreibung

Improve the Logging quickstart [in Java](https://cloud.google.com/logging/docs/samples/logging-quickstart#logging_quickstart-java). Quickstart should work out of the box and contain all the instructions (in comments) so users can immediately see their logs.

Additional criteria:
- [ ] include comments on various [ways to authenticate ](https://cloud.google.com/docs/authentication)
- [ ] encourage users to log with standard log wrapper [Logback](https://github.com/googleapis/java-logging-logback) rather than directly writing [LogEntries](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry). Context: In an ideal world, customers should be able to use existing logging frameworks native to their language. With some simple appender/handler to also ship logs to Cloud Logging. Customers aren't locked into logging library syntax, thus it's easier to both onboarding and offboard off of these client libraries.
- [ ] comment that if users need more customizable logs, redirect to [writing log entries](https://cloud.google.com/logging/docs/samples/logging-write-log-entry)
- [ ] if applicable, a test for this sample

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.