googleapis / googleapis/google-cloud-java
[java-logging] Sample: update quickstart snippet
- Lenguaje dominante
- Java
- Estrellas
- 2.1k
- Forks
- 1.2k
- Merge medio
- 1 d 23 h
- PR fusionados (30 d)
- 154
Descripción
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
Guía de contribución
Evaluación
Este issue todavía no se ha evaluado.