Documentation
¶
Overview ¶
Package logger provives the zap.Logger in the context.Context.
Index ¶
- func FromContext(ctx context.Context) *zap.Logger
- func NewConsoleEncoder(cfg zapcore.EncoderConfig) zapcore.Encoder
- func NewContext(ctx context.Context, logger *zap.Logger) context.Context
- func NewRedirectZapLogger(lv zapcore.Level, opts ...zap.Option) (*zap.Logger, func())
- func NewZapLogger(l zapcore.Level, opts ...zap.Option) *zap.Logger
- func WithContext(ctx context.Context, fields ...zapcore.Field) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConsoleEncoder ¶
func NewConsoleEncoder(cfg zapcore.EncoderConfig) zapcore.Encoder
func NewRedirectZapLogger ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.