googleapis/google-cloud-java

[java-logging] Sample: update quickstart snippet

Open

#11,924 opened on 2020年12月9日

GitHub で見る
 (1 comment) (0 reactions) (1 assignee)Java (1,082 forks)batch import
api: logginggood first issuepriority: p3samplestype: feature request

Repository metrics

Stars
 (1,763 stars)
PR merge metrics
 (平均マージ 2d 21h) (30d で 145 merged PRs)

説明

Improve the Logging quickstart in 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
  • encourage users to log with standard log wrapper Logback rather than directly writing LogEntries. 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
  • if applicable, a test for this sample

コントリビューターガイド