googleapis / googleapis/google-cloud-java

[java-logging] Improve the Write logEntry sample

Đang mở
#11,923 0 bình luận 0 reaction 1 người được giao Được @arbrown nhận Xem trên GitHub
api: logging good first issue lang: java 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 Write logEntry sample on [this page](https://cloud.google.com/logging/docs/samples/logging-write-log-entry)

This page is referenced by [docs](https://cloud.google.com/logging/docs/api/tasks/creating-logs) that explicitly talk about LogEntries. So we should demo this “advanced” logging technique, even though we do recommend the standard log wrapper approach in the quickstarts.

Criteria:
- [ ] Demo how to write a text logEntry (textPayload)
- [ ] Demo how to write a struct logEntry (jsonPayload)
- [ ] Include: severity level, labels, resource type (“global”)
- [ ] Demo: batch logging vs writing one log at a time
- [ ] Update accompanying tests

Region tag: `logging_write_log_entry`

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.