2019-11-08 21:45:10 +00:00
|
|
|
package client
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/canonical/go-dqlite/internal/logging"
|
|
|
|
)
|
|
|
|
|
|
|
|
// LogFunc is a function that can be used for logging.
|
|
|
|
type LogFunc = logging.Func
|
|
|
|
|
|
|
|
// LogLevel defines the logging level.
|
|
|
|
type LogLevel = logging.Level
|
|
|
|
|
|
|
|
// Available logging levels.
|
|
|
|
const (
|
|
|
|
LogDebug = logging.Debug
|
|
|
|
LogInfo = logging.Info
|
|
|
|
LogWarn = logging.Warn
|
|
|
|
LogError = logging.Error
|
|
|
|
)
|
|
|
|
|
2020-04-23 20:34:44 +00:00
|
|
|
// DefaultLogFunc doesn't emit any message.
|
|
|
|
func DefaultLogFunc(l LogLevel, format string, a ...interface{}) {}
|