googleapis/google-cloud-java

[java-logging] Sample: update quickstart snippet

Open

#11 924 ouverte le 9 déc. 2020

Voir sur GitHub
 (1 commentaire) (0 réactions) (1 assigné)Java (1 082 forks)batch import
api: logginggood first issuepriority: p3samplestype: feature request

Métriques du dépôt

Stars
 (1 763 stars)
Métriques de merge PR
 (Merge moyen 2j 21h) (145 PRs mergées en 30 j)

Description

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

Guide contributeur