Documentation
¶
Index ¶
- Variables
- func Debug(args ...interface{})
- func Debugf(fmt string, args ...interface{})
- func Error(args ...interface{})
- func Errorf(fmt string, args ...interface{})
- func Fatal(args ...interface{})
- func Fatalf(fmt string, args ...interface{})
- func Info(args ...interface{})
- func Infof(fmt string, args ...interface{})
- func Sync()
- func Warn(args ...interface{})
- func Warnf(fmt string, args ...interface{})
- type Config
- type Logger
- type NacosLogger
- type SamplingConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ZapLogger is kept for backward compatibility with existing integrations // (e.g. gin middleware expecting *zap.Logger). ZapLogger *zap.Logger )
Functions ¶
Types ¶
type Config ¶
type Config struct {
Level string
LogFileName string
Sampling *SamplingConfig
LogRollingConfig *lumberjack.Logger
LogDir string
CustomLogger Logger
LogStdout bool
}
type Logger ¶
type Logger interface {
Info(args ...interface{})
Warn(args ...interface{})
Error(args ...interface{})
Debug(args ...interface{})
Fatal(args ...interface{})
Sync() error
Infof(fmt string, args ...interface{})
Warnf(fmt string, args ...interface{})
Errorf(fmt string, args ...interface{})
Debugf(fmt string, args ...interface{})
Fatalf(fmt string, args ...interface{})
}
Logger is the interface for Logger types
func InitLogger ¶
InitLogger is init global logger for nacos
type NacosLogger ¶
type NacosLogger struct {
Logger
}
Click to show internal directories.
Click to hide internal directories.