mirror of https://github.com/golang/go.git
Existing spans defined within gopls are leveraged to add runtime/trace tasks, regions, and logging. This made it easier to understand gopls' execution, though we still have relatively sparse logging (arguably because we're conscious of the fact that logs are reflected back to the LSP client). Add a new log package with the concept of log level to facilitate excluding trace logs from the LSP. Add a little bit of additional instrumentation to demonstrate the usage of the new package. Change-Id: Id337be806484201103e30bfe2c8c62c7d7c363c7 Reviewed-on: https://go-review.googlesource.com/c/tools/+/275252 Run-TryBot: Robert Findley <rfindley@google.com> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Heschi Kreinick <heschi@google.com> Trust: Robert Findley <rfindley@google.com> |
||
|---|---|---|
| .. | ||
| log.go | ||