Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add
promslog.NewNopLogger()
convenience func (#697)
Simple convenience function to return an slog.Logger that writes to io.Discard. Originally suggested by @ArthurSens [here](#686 (comment)), and requested again by @bboreham [here](prometheus/prometheus#14906 (comment)). As Bryan points out in the comment, there's 147 instances where a discard logger is needed, so a consistent utility function to manage them seems helpful. Signed-off-by: TJ Hoplock <t.hoplock@gmail.com>
- Loading branch information