Documentation ¶
Index ¶
- Constants
- func Debug(msg string)
- func Debugf(msg string, args ...interface{})
- func Debugw(msg string, keysAndValues ...interface{})
- func Error(msg string)
- func Errorf(msg string, args ...interface{})
- func Errorw(msg string, keysAndValues ...interface{})
- func Fatal(args ...interface{})
- func Fatalf(template string, args ...interface{})
- func Fatalw(msg string, keysAndValues ...interface{})
- func Info(msg string)
- func Infof(msg string, args ...interface{})
- func Infow(msg string, keysAndValues ...interface{})
- func Init(config *Config)
- func NewLogger(conf *Config) *zap.Logger
- func NewSugaredLogger(conf *Config) *zap.SugaredLogger
- func NewkvEncoder(cfg zapcore.EncoderConfig) zapcore.Encoder
- func Panic(args ...interface{})
- func Panicf(template string, args ...interface{})
- func Panicw(msg string, keysAndValues ...interface{})
- func Warn(msg string)
- func Warnf(msg string, args ...interface{})
- func Warnw(msg string, keysAndValues ...interface{})
- type Config
- type RotateConfig
Constants ¶
View Source
const ( DebugLevel = iota - 1 InfoLevel WarnLevel ErrorLevel RotateMaxSize = 300 RotateMaxAge = 7 RotateMaxBackups = 15 )
Variables ¶
This section is empty.
Functions ¶
func NewSugaredLogger ¶
func NewSugaredLogger(conf *Config) *zap.SugaredLogger
func NewkvEncoder ¶
func NewkvEncoder(cfg zapcore.EncoderConfig) zapcore.Encoder
Types ¶
Directories ¶
Path | Synopsis |
---|---|
Package bufferpool houses zap's shared internal buffer pool.
|
Package bufferpool houses zap's shared internal buffer pool. |
Package pool provides internal pool utilities.
|
Package pool provides internal pool utilities. |
Click to show internal directories.
Click to hide internal directories.