googleapis / googleapis/google-cloud-java

[java-logging] Sample: update quickstart snippet

Đang mở
#11,924 1 bình luận 0 reaction 1 người được giao Được @arbrown nhận Xem trên GitHub
api: logging good first issue priority: p3 samples type: feature request
Ngôn ngữ chính
Java
Star
2.1k
Fork
1.2k
Merge trung bình
1 ngày 23 giờ
Pull request đã merge (30 ngày)
154

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.