go-ceph/common/log/log.go
Sven Anderson f4fb583252 docs: remove all PREVIEW comments
Signed-off-by: Sven Anderson <sven@redhat.com>
2022-06-06 14:42:04 +00:00

21 lines
532 B
Go

//go:build ceph_preview
// +build ceph_preview
// Package log allows to enable go-ceph logging and integrate it with the
// logging of the go-ceph consuming code.
package log
import (
intLog "github.com/ceph/go-ceph/internal/log"
)
// SetWarnf sets the log.Printf compatible receiver for warning logs.
func SetWarnf(f func(format string, v ...interface{})) {
intLog.Warnf = f
}
// SetDebugf sets the log.Printf compatible receiver for debug logs.
func SetDebugf(f func(format string, v ...interface{})) {
intLog.Debugf = f
}