Documentation ¶
Index ¶
- func Debug(args ...interface{})
- func Debugf(fmt string, args ...interface{})
- func Error(args ...interface{})
- func Errorf(fmt string, args ...interface{})
- func Info(args ...interface{})
- func Infof(fmt string, args ...interface{})
- func InitLogger(config Config) (err error)
- func SetLogger(log Logger)
- func Warn(args ...interface{})
- func Warnf(fmt string, args ...interface{})
- type Config
- type Logger
- type NacosLogger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitLogger ¶
InitLogger is init global logger for nacos
Types ¶
type Logger ¶
type Logger interface { Info(args ...interface{}) Warn(args ...interface{}) Error(args ...interface{}) Debug(args ...interface{}) Infof(fmt string, args ...interface{}) Warnf(fmt string, args ...interface{}) Errorf(fmt string, args ...interface{}) Debugf(fmt string, args ...interface{}) }
Logger is the interface for Logger types
func InitNacosLogger ¶
InitNacosLogger is init nacos default logger
type NacosLogger ¶
type NacosLogger struct {
Logger
}
Click to show internal directories.
Click to hide internal directories.