Documentation ¶
Index ¶
- Variables
- func CtxWithLogger(ctx context.Context, fields ...zap.Field) context.Context
- func Debug(ctx context.Context, msg string, fields ...zap.Field)
- func Debugf(ctx context.Context, format string, args ...any)
- func Error(ctx context.Context, msg string, fields ...zap.Field)
- func Fatal(ctx context.Context, msg string, fields ...zap.Field)
- func Fatalf(ctx context.Context, format string, args ...any)
- func FromCtx(ctx context.Context) *zap.Logger
- func Info(ctx context.Context, msg string, fields ...zap.Field)
- func NewLogger(fields ...zap.Field) *zap.Logger
- func SetLevelByName(level string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var WithError = zap.Error
View Source
var WithString = zap.String
View Source
var WithStrings = zap.Strings
View Source
var WithTime = zap.Time
Functions ¶
func SetLevelByName ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.