Documentation
¶
Index ¶
- Variables
- func CtxWithLogger(parent context.Context, logger *zap.Logger) context.Context
- func FuncStack(fn interface{}) zap.Field
- func GetLog(ctx context.Context) *zap.Logger
- func Id(id string) zap.Field
- func Init()
- func Name(name string) zap.Field
- func WithErr(err error, fields ...zap.Field) []zap.Field
- type Fields
- type Logger
- func (t *Logger) Depth(depth ...int) *zap.Logger
- func (t *Logger) DepthS(depth ...int) *zap.SugaredLogger
- func (t *Logger) Error(args ...interface{})
- func (t *Logger) Errorf(template string, args ...interface{})
- func (t *Logger) Errorw(msg string, keysAndValues ...interface{})
- func (t *Logger) Info(args ...interface{})
- func (t *Logger) Infof(template string, args ...interface{})
- func (t *Logger) Infow(msg string, keysAndValues ...interface{})
- func (t *Logger) Warn(args ...interface{})
- func (t *Logger) Warnf(template string, args ...interface{})
- func (t *Logger) Warnw(msg string, keysAndValues ...interface{})
- func (t *Logger) With(args ...zap.Field) *zap.Logger
Constants ¶
This section is empty.
Variables ¶
View Source
var Discard = zap.NewNop()
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.