Documentation
¶
Index ¶
- 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 Named(ctx context.Context, name string, fields ...zap.Field) (context.Context, *zap.Logger)
- func New(ctx context.Context, core zapcore.Core, opts ...zap.Option) context.Context
- func With(ctx context.Context, fields ...zap.Field) (context.Context, *zap.Logger)
- func WithLogger(ctx context.Context, logger *zap.Logger) context.Context
- type Level
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Error ¶ added in v0.2.0
Error is a helper to log a single error-level message to a Context logger
func FromContext ¶
FromContext attempts to retrieve a Logger from a Context's values
Types ¶
Click to show internal directories.
Click to hide internal directories.