sloglint icon indicating copy to clipboard operation
sloglint copied to clipboard

🪵 Ensure consistent code style when using log/slog

Results 14 sloglint issues
Sort by recently updated
recently updated
newest added

The `slog.Logger` API is just one of possible many other high-level APIs which accept key/value pairs. Another example is `go-logr/logr.Logger` and some custom wrapper functions in Kubernetes. It would be...

Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.23.0 to 0.24.0. Commits 3057be8 go.mod: update golang.org/x dependencies 4653e48 gopls/internal/analysis: add skipped analysis simplify on generated code f855a53 gopls/internal/telemetry/cmd/stacks: use authentication token 3ffd605 gopls/doc/features: fix prominent...

dependencies

The `slog.Group()` function is the only means to put some grouped data elements between other elements into the log. A call like `logger.Info("message", "key1", value1, slog.Group("group", "key2", value2, "key3", value3),...

enhancement

Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.24.0 to 0.25.0. Commits 7398f36 all: fix some symbols error in comment f111c72 go/callgraph/rta: skip test on js platform 9f9b7e3 gopls/internal/settings: add missing deep cloning in Options.Clone...

dependencies

I've using a customize version to find keys that don't match the convention I'm looking for, but have been trying to think of a more customizable way for this to...

enhancement

Added support for slog.Group Since it has pairs to check, i decided to add func `log/slog.Group` to list of slog functions to make it checkable)

Howdy, sloglint maintainers! I recently built a new API service and wanted to try out some of the latest improvements to the standard library, including `slog` and better `http.ServeMux` routing....

I often find myself annoyed when using the no-global `default` option, because even though it's great when inside of sub-modules and other functions to enforce using a passed in logger,...

Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.35.0 to 0.38.0. Commits a22b5e8 go.mod: update golang.org/x dependencies 4bbcc9f all: use reflect.TypeFor instead of reflect.TypeOf when we have known the type 122c93a internal/refactor: AddImport: remove unnecessary...

dependencies
go