1
0
mirror of https://github.com/golang/go synced 2024-11-18 21:05:02 -07:00
go/internal/jsonrpc2
Ian Cottrell 96e9e165b7 cmd/golsp: format logging for the lsp inspector
This improves the logging capabilities of the jsonrpc 2 library to always
include the method and also an optional elapsed time.
This is used to implement an lsp inspector compatible logging mode in the golsp.

Change-Id: I2f7ac8b9298c4364b1b89cf6f696b534557ed139
Reviewed-on: https://go-review.googlesource.com/c/146157
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
2018-11-02 22:32:51 +00:00
..
jsonrpc2_test.go internal/jsonrpc2: a basic json rpc library to build an lsp on top of 2018-09-24 17:56:01 +00:00
jsonrpc2.go cmd/golsp: format logging for the lsp inspector 2018-11-02 22:32:51 +00:00
log.go cmd/golsp: format logging for the lsp inspector 2018-11-02 22:32:51 +00:00
stream.go internal/jsonrpc2: a basic json rpc library to build an lsp on top of 2018-09-24 17:56:01 +00:00
wire.go cmd/golsp: format logging for the lsp inspector 2018-11-02 22:32:51 +00:00