Documentation ¶
Index ¶
- func DefaultJSONEncoder() (encoder zapcore.Encoder)
- func Error(ctx context.Context, err error) error
- func Logger(ctx context.Context) *zap.Logger
- func NewLogger(conf Config, encoder zapcore.Encoder) (logger *zap.Logger, err error)
- func WithLogger(ctx context.Context, fields ...zap.Field) context.Context
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultJSONEncoder ¶
DefaultJSONEncoder Create a new JSON log encoder with the correct settings.
Types ¶
Click to show internal directories.
Click to hide internal directories.