From 193d87efca6258648cf3aa1586eeccdf8c7ba120 Mon Sep 17 00:00:00 2001 From: SuperQ Date: Thu, 7 Nov 2024 10:09:06 +0100 Subject: [PATCH] Mark promlog deprecated Now that all Prometheus repos have been migrated to the `promslog` package, mark `promlog` as deprecated. Signed-off-by: SuperQ --- promlog/flag/flag.go | 5 ++++- promlog/log.go | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/promlog/flag/flag.go b/promlog/flag/flag.go index e045b9739..16352a0fe 100644 --- a/promlog/flag/flag.go +++ b/promlog/flag/flag.go @@ -11,6 +11,9 @@ // See the License for the specific language governing permissions and // limitations under the License. +// Deprecated: This package has been deprecated in favor of migrating to +// `github.com/prometheus/common/promslog` which uses the Go standard library +// `log/slog` package. package flag import ( @@ -18,7 +21,7 @@ import ( kingpin "github.com/alecthomas/kingpin/v2" - "github.com/prometheus/common/promlog" + "github.com/prometheus/common/promlog" //nolint:staticcheck ) // LevelFlagName is the canonical flag name to configure the allowed log level diff --git a/promlog/log.go b/promlog/log.go index 50746544a..24a11622b 100644 --- a/promlog/log.go +++ b/promlog/log.go @@ -14,6 +14,10 @@ // Package promlog defines standardised ways to initialize Go kit loggers // across Prometheus components. // It should typically only ever be imported by main packages. +// +// Deprecated: This package has been deprecated in favor of migrating to +// `github.com/prometheus/common/promslog` which uses the Go standard library +// `log/slog` package. package promlog import (