Documentation ¶
Index ¶
- func Debug(msg string, fields ...Field)
- func DefaultLogger() *zap.Logger
- func Error(msg string, fields ...Field)
- func Errorf(template string, args ...interface{})
- func Fatal(msg string, fields ...Field)
- func Info(msg string, fields ...Field)
- func Infof(template string, args ...interface{})
- func InitLogger(cfg Config) error
- func Warn(msg string, fields ...Field)
- type Config
- type Field
- func Any(key string, value interface{}) Field
- func Int32(key string, val int32) Field
- func Int64(key string, val int64) Field
- func Reflect(key string, val interface{}) Field
- func Stack() Field
- func String(key string, val string) Field
- func Uint16(key string, val uint16) Field
- func Uint32(key string, val uint32) Field
- func Uint64(key string, val uint64) Field
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultLogger ¶
sDefaultLogger creates a default logger for uninitialized usage.
func InitLogger ¶
InitLogger initializes a zap logger from user config.
Types ¶
Click to show internal directories.
Click to hide internal directories.