Documentation ¶
Index ¶
- Variables
- func DPanic(args ...interface{})
- func DPanicf(template string, args ...interface{})
- func DPanicw(msg string, keysAndValues ...interface{})
- func Debug(args ...interface{})
- func Debugf(template string, args ...interface{})
- func Debugw(msg string, keysAndValues ...interface{})
- func Error(args ...interface{})
- func Errorf(template 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 Flush()
- func Info(args ...interface{})
- func Infof(template string, args ...interface{})
- func Infow(msg string, keysAndValues ...interface{})
- func InitLogger(c *LoggerConfig) error
- func Panic(args ...interface{})
- func Panicf(template string, args ...interface{})
- func Panicw(msg string, keysAndValues ...interface{})
- func Printf(template string, args ...interface{})
- func Println(msg string)
- func Warn(args ...interface{})
- func Warnf(template string, args ...interface{})
- func Warnw(msg string, keysAndValues ...interface{})
- func With(args ...interface{}) *zap.SugaredLogger
- type LoggerConfig
- type Wrapper
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Base = zap.NewNop() Logger = Base.Sugar() )
Defaults
Functions ¶
func InitLogger ¶
func InitLogger(c *LoggerConfig) error
InitLogger loads a global logger based on a configuration
func With ¶
func With(args ...interface{}) *zap.SugaredLogger
Types ¶
type LoggerConfig ¶
Click to show internal directories.
Click to hide internal directories.