Documentation ¶
Index ¶
- func CapturePanic()
- 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 ErrorOutput(paths ...string) zap.Option
- func Errorf(template string, args ...interface{})
- func Errorw(msg string, keysAndValues ...interface{})
- func Fatal(args ...interface{})
- func Fatalf(template string, args ...interface{})
- func Fatalln(v ...interface{})
- func Fatalw(msg string, keysAndValues ...interface{})
- func Info(args ...interface{})
- func Infof(template string, args ...interface{})
- func Infow(msg string, keysAndValues ...interface{})
- func Named(name string) *zap.SugaredLogger
- func NewDevelopmentConfig() zap.Config
- func NewDevelopmentEncoderConfig() zapcore.EncoderConfig
- func Panic(args ...interface{})
- func Panicf(template string, args ...interface{})
- func Panicln(v ...interface{})
- func Panicw(msg string, keysAndValues ...interface{})
- func Print(v ...interface{})
- func Printf(format string, v ...interface{})
- func Println(v ...interface{})
- func Sampling(initial, thereafter int) zap.Option
- func Sync() error
- func Use(logger *zap.Logger)
- func Warn(args ...interface{})
- func Warnf(template string, args ...interface{})
- func Warnw(msg string, keysAndValues ...interface{})
- func With(args ...interface{}) *zap.SugaredLogger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CapturePanic ¶
func CapturePanic()
CapturePanic captures, logs and re-throws a panic. Only useful when used with defer.
func ErrorOutput ¶
ErrorOutput is a convenience function that creates a zapcore.WriteSyncer and returns it as zap.ErrorOutput option. It panics if path can't be opened. Example: ErrorOutput("stderr")
func Named ¶
func Named(name string) *zap.SugaredLogger
func NewDevelopmentConfig ¶
func NewDevelopmentEncoderConfig ¶
func NewDevelopmentEncoderConfig() zapcore.EncoderConfig
func Sampling ¶
Sampling is a convenience function that returns a zap.Option which wraps a core with a sample policy.
func With ¶
func With(args ...interface{}) *zap.SugaredLogger
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.