Documentation ¶
Index ¶
- Constants
- Variables
- func Debugf(fmt string, args ...interface{})
- func Debugw(msg string, keysAndValues ...interface{})
- func Errorf(fmt string, args ...interface{})
- func Errorw(msg string, keysAndValues ...interface{})
- func Infof(fmt string, args ...interface{})
- func Infow(msg string, keysAndValues ...interface{})
- func InitWithConfig(config Config) error
- func Warnf(fmt string, args ...interface{})
- func Warnw(msg string, keysAndValues ...interface{})
- type Config
- type DebugModeType
- type Level
Constants ¶
View Source
const ( DebugLevel = Level(zap.DebugLevel) InfoLevel = Level(zap.InfoLevel) WarnLevel = Level(zap.WarnLevel) ErrorLevel = Level(zap.ErrorLevel) )
Variables ¶
View Source
var ( DefaultLogger *zap.Logger DefaultSugarLogger *zap.SugaredLogger )
Functions ¶
func InitWithConfig ¶
Types ¶
type Config ¶
type Config struct { AppName string DebugMode DebugModeType }
type DebugModeType ¶
type DebugModeType int
const ( DebugModeFromEnv DebugModeType = iota DebugModeOff DebugModeOn )
Click to show internal directories.
Click to hide internal directories.