Skip to content

Commit b83ece4

Browse files
authored
Mark promlog deprecated (#720)
Now that all Prometheus repos have been migrated to the `promslog` package, mark `promlog` as deprecated. Signed-off-by: SuperQ <[email protected]>
1 parent 8675cd9 commit b83ece4

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

promlog/flag/flag.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,17 @@
1111
// See the License for the specific language governing permissions and
1212
// limitations under the License.
1313

14+
// Deprecated: This package has been deprecated in favor of migrating to
15+
// `github.com/prometheus/common/promslog` which uses the Go standard library
16+
// `log/slog` package.
1417
package flag
1518

1619
import (
1720
"strings"
1821

1922
kingpin "github.com/alecthomas/kingpin/v2"
2023

21-
"github.com/prometheus/common/promlog"
24+
"github.com/prometheus/common/promlog" //nolint:staticcheck
2225
)
2326

2427
// LevelFlagName is the canonical flag name to configure the allowed log level

promlog/log.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
// Package promlog defines standardised ways to initialize Go kit loggers
1515
// across Prometheus components.
1616
// It should typically only ever be imported by main packages.
17+
//
18+
// Deprecated: This package has been deprecated in favor of migrating to
19+
// `github.com/prometheus/common/promslog` which uses the Go standard library
20+
// `log/slog` package.
1721
package promlog
1822

1923
import (

0 commit comments

Comments
 (0)