From 9b0f03b0f194d8a10fcbcd7e7632614a4429091b Mon Sep 17 00:00:00 2001 From: Rustam Gilyazov <16064414+rusq@users.noreply.github.com> Date: Tue, 19 Nov 2024 17:26:32 +1000 Subject: [PATCH] update readme --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 744d79d0..e8138324 100644 --- a/README.md +++ b/README.md @@ -166,6 +166,14 @@ See [Package Documentation][godoc]. Slackdump uses a "log/slog" package, it defaults to "slog.Default()". Set the default slog logger to the one you want to use. +If you were using `logger.Silent` before, you would need to +[implement][slog-handler-guide] a discarding [Handler][godoc-slog-handler] for slog. + +[slog-handler-guide]: https://github.com/golang/example/blob/master/slog-handler-guide/README.md +[godoc-slog-handler]: https://pkg.go.dev/log/slog#Handler + +```go + ## FAQ #### Do I need to create a Slack application?