alertmanager/cli
TJ Hoplock f6b942cf9b
chore!: adopt log/slog, drop go-kit/log (#4089)
* chore!: adopt log/slog, drop go-kit/log

The bulk of this change set was automated by the following script which
is being used to aid in converting the various exporters/projects to use
slog:

https://gist.github.com/tjhop/49f96fb7ebbe55b12deee0b0312d8434

This commit includes several changes:
- bump exporter-tookit to v0.13.1 for log/slog support
- updates golangci-lint deprecated configs
- enables sloglint linter
- removes old go-kit/log linter configs
- introduce some `if logger == nil { $newLogger }` additions to prevent
  nil references
- converts cluster membership config to use a stdlib compatible slog
  adapter, rather than creating a custom io.Writer for use as the
membership `logOutput` config

Signed-off-by: TJ Hoplock <t.hoplock@gmail.com>

* chore: address PR feedback

Signed-off-by: TJ Hoplock <t.hoplock@gmail.com>

---------

Signed-off-by: TJ Hoplock <t.hoplock@gmail.com>
2024-11-06 09:09:57 +00:00
..
config Add godot linter (#3613) 2024-03-21 11:26:46 +00:00
format Add godot linter (#3613) 2024-03-21 11:26:46 +00:00
testdata
alert.go Update gopkg.in/alecthomas/kingpin.v2 to github.com/alecthomas/kingpin/v2 2023-03-08 15:02:24 +01:00
alert_add.go Rename matchers package to matcher singular (#3777) 2024-06-21 16:17:27 +02:00
alert_query.go Rename matchers package to matcher singular (#3777) 2024-06-21 16:17:27 +02:00
check_config.go Add godot linter (#3613) 2024-03-21 11:26:46 +00:00
check_config_test.go
cluster.go Add godot linter (#3613) 2024-03-21 11:26:46 +00:00
config.go Add godot linter (#3613) 2024-03-21 11:26:46 +00:00
root.go chore!: adopt log/slog, drop go-kit/log (#4089) 2024-11-06 09:09:57 +00:00
routing.go Update gopkg.in/alecthomas/kingpin.v2 to github.com/alecthomas/kingpin/v2 2023-03-08 15:02:24 +01:00
silence.go Add godot linter (#3613) 2024-03-21 11:26:46 +00:00
silence_add.go Rename matchers package to matcher singular (#3777) 2024-06-21 16:17:27 +02:00
silence_expire.go Update gopkg.in/alecthomas/kingpin.v2 to github.com/alecthomas/kingpin/v2 2023-03-08 15:02:24 +01:00
silence_import.go use Go standard errors 2023-12-08 16:44:13 +01:00
silence_query.go Rename matchers package to matcher singular (#3777) 2024-06-21 16:17:27 +02:00
silence_update.go use Go standard errors 2023-12-08 16:44:13 +01:00
template.go Update gopkg.in/alecthomas/kingpin.v2 to github.com/alecthomas/kingpin/v2 2023-03-08 15:02:24 +01:00
template_render.go `amtool template render` improve default data (#3725) 2024-02-28 11:10:25 +00:00
test_routing.go Rename matchers package to matcher singular (#3777) 2024-06-21 16:17:27 +02:00
test_routing_test.go
utils.go Add godot linter (#3613) 2024-03-21 11:26:46 +00:00