go-language-server / protocol

Package protocol implements Language Server Protocol specification in Go
https://pkg.go.dev/go.lsp.dev/protocol
BSD 3-Clause "New" or "Revised" License
98 stars 15 forks source link

Support abstract structured logger interface #23

Open zchee opened 3 years ago

zchee commented 3 years ago

Currently, the logger depends go.uber.org/zap package.

Should provide the abstract (but structured) Logger interface for developers who use the protocol package.

Like go-logr/logr, but Language Server Protocol specific.

stefanvanburen commented 1 week ago

Should this package just target slog as the logger?

zchee commented 1 week ago

@stefanvanburen Yes, When I create this issue, not exist slog. But slog has been one of Go community de-fact logger. I planned switch to using slog instead of go-logr.

Current status of this repository, See also: https://github.com/go-language-server/protocol/issues/48#issuecomment-2427327653