Documentation ¶
Index ¶
- func AddFields(ctx context.Context, fields ...zap.Field)
- func Debug(ctx context.Context, msg string, fields ...zap.Field)
- func Error(ctx context.Context, msg string, fields ...zap.Field)
- func FromContext(ctx context.Context) *zap.Logger
- func Info(ctx context.Context, msg string, fields ...zap.Field)
- func ReplaceField(ctx context.Context, field zap.Field)
- func ToContext(ctx context.Context, logger *zap.Logger, fields []zap.Field) context.Context
- func Warn(ctx context.Context, msg string, fields ...zap.Field)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromContext ¶
FromContext extract logger from context Please use this with caution, this method will create a new logger, leveled logging functions like Info, Warn is preferred.
func ReplaceField ¶
ReplaceField replace existing field or append new field
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.