| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
very minor nit: guilde -> guide in PR title |
Sorry, something went wrong.
| .level=INFO | ||
|
|
||
| # Specify logging level for certain packages | ||
| com.google.api.level=ALL |
There was a problem hiding this comment.
Can we add notes to indicate that this is only needed for REST APIs and io.groc.level below is only needed for gRPC APIs?
Sorry, something went wrong.
There was a problem hiding this comment.
Added comments.
Note that even when you use gRPC library, some authentication happens in HTTP 1.1.
Sorry, something went wrong.
There was a problem hiding this comment.
Note that even when you use gRPC library, some authentication happens in HTTP 1.1.
Thanks, that's good to know. I guess it would be mostly covered by the com.google.auth.level=FINE below?
Sorry, something went wrong.
There was a problem hiding this comment.
That does not show HTTP headers.
Sorry, something went wrong.
| io.grpc.level=FINE | ||
|
|
||
| # Example when we want to specify storge library's level | ||
| com.google.cloud.storage.level=INFO |
There was a problem hiding this comment.
I'm afraid this is only useful for handwritten libraries, for pure generated ones, we have very little logs, which is something we are planning to improve as part of the observability project. Can we add something to indicate it as well or maybe remove this section?
Sorry, something went wrong.
There was a problem hiding this comment.
Added that.
Sorry, something went wrong.
|
Thanks Tomo, this is very helpful! FYI, we are planning to improve the whole logging experience as part of the Observability project, so a lot of things could change, but this guide is pretty accurate as of now. |
Sorry, something went wrong.
|
Looks good! IIRC, I have used this page previously for logging some of the HTTP requests for REGAPIC: http://googleapis.github.io/google-http-java-client/http-transport.html I think your guide should cover the cases. Just FYI if you wanted to add anything else. |
Sorry, something went wrong.
There was a problem hiding this comment.
Sorry, something went wrong.
Thanks for then note Lawrence! I think it should be already covered by com.google.api.level=ALL as com.google.api.client.http is a sub-package of com.google.api. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Document to explain how to change logging level for our libraries and underlying libraries.
Credit: I used @BenWhitehead 's snippet in bits benwhitehead/6166544285433856.