alertmanager/notify
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
..
discord chore!: adopt log/slog, drop go-kit/log (#4089) 2024-11-06 09:09:57 +00:00
email chore!: adopt log/slog, drop go-kit/log (#4089) 2024-11-06 09:09:57 +00:00
jira chore!: adopt log/slog, drop go-kit/log (#4089) 2024-11-06 09:09:57 +00:00
msteams chore!: adopt log/slog, drop go-kit/log (#4089) 2024-11-06 09:09:57 +00:00
msteamsv2 chore!: adopt log/slog, drop go-kit/log (#4089) 2024-11-06 09:09:57 +00:00
opsgenie chore!: adopt log/slog, drop go-kit/log (#4089) 2024-11-06 09:09:57 +00:00
pagerduty chore!: adopt log/slog, drop go-kit/log (#4089) 2024-11-06 09:09:57 +00:00
pushover chore!: adopt log/slog, drop go-kit/log (#4089) 2024-11-06 09:09:57 +00:00
rocketchat chore!: adopt log/slog, drop go-kit/log (#4089) 2024-11-06 09:09:57 +00:00
slack chore!: adopt log/slog, drop go-kit/log (#4089) 2024-11-06 09:09:57 +00:00
sns chore!: adopt log/slog, drop go-kit/log (#4089) 2024-11-06 09:09:57 +00:00
telegram chore!: adopt log/slog, drop go-kit/log (#4089) 2024-11-06 09:09:57 +00:00
test feat: add template.FromGlobsWithAdditionalFuncs (#3174) 2022-12-16 10:13:13 -04:00
victorops chore!: adopt log/slog, drop go-kit/log (#4089) 2024-11-06 09:09:57 +00:00
webex chore!: adopt log/slog, drop go-kit/log (#4089) 2024-11-06 09:09:57 +00:00
webhook chore!: adopt log/slog, drop go-kit/log (#4089) 2024-11-06 09:09:57 +00:00
wechat chore!: adopt log/slog, drop go-kit/log (#4089) 2024-11-06 09:09:57 +00:00
notify.go chore!: adopt log/slog, drop go-kit/log (#4089) 2024-11-06 09:09:57 +00:00
notify_test.go chore!: adopt log/slog, drop go-kit/log (#4089) 2024-11-06 09:09:57 +00:00
util.go chore!: adopt log/slog, drop go-kit/log (#4089) 2024-11-06 09:09:57 +00:00
util_test.go Use the new truncation in bytes functions to ensure strings are not butchered 2022-11-11 15:15:09 +00:00