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 Warn(args ...interface{})
- func Warnf(fmt string, args ...interface{})
- type Config
- type Logger
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 InitLogger ¶
func InitLogger(conf *Config)
Types ¶
type Config ¶
type Config struct { LumberjackConfig *lumberjack.Logger `yaml:"lumberjack-config"` ZapConfig *zap.Config `yaml:"zap-config"` CallerSkip int }
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.