mirror of
https://github.com/ceph/go-ceph
synced 2024-12-13 18:06:19 +00:00
9d74c3c2b1
Signed-off-by: Sven Anderson <sven@redhat.com>
18 lines
484 B
Go
18 lines
484 B
Go
// 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
|
|
}
|