Documentation ¶
Index ¶
- 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 InitLogger(conf *Config)
- func SetLogger(log Logger)
- func SetLoggerLevel(level string) bool
- func Warn(args ...interface{})
- func Warnf(fmt string, args ...interface{})
- type Config
- type DubboLogger
- type Logger
- type OpsLogger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Fatalf ¶
func Fatalf(fmt string, args ...interface{})
Fatalf logs a templated message, then calls os.Exit.
func SetLoggerLevel ¶
SetLoggerLevel use for set logger level
Types ¶
type Config ¶
type Config struct { LumberjackConfig *lumberjack.Logger `yaml:"lumberjack-config"` ZapConfig *zap.Config `yaml:"zap-config"` CallerSkip int }
type DubboLogger ¶
type DubboLogger struct { Logger // contains filtered or unexported fields }
nolint
func (*DubboLogger) SetLoggerLevel ¶
func (dl *DubboLogger) SetLoggerLevel(level string)
SetLoggerLevel use for set logger level
type Logger ¶
type Logger interface { Info(args ...interface{}) Warn(args ...interface{}) Error(args ...interface{}) Debug(args ...interface{}) Fatal(args ...interface{}) 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
Click to show internal directories.
Click to hide internal directories.