Documentation ¶
Index ¶
- Constants
- func FindLogLevel(logLevel string) (zapcore.Level, error)
- func New(prettyLogging bool, debug bool, level zapcore.Level) *zap.Logger
- func RequestIDFromContext(ctx context.Context) string
- func WithRequestID(reqID string) zap.Field
- func WithRequestIDFromContext(ctx context.Context) zap.Field
- type RequestIDKey
Constants ¶
View Source
const (
RequestIDHeader = "X-Request-Id"
)
Variables ¶
This section is empty.
Functions ¶
func RequestIDFromContext ¶ added in v0.117.0
func WithRequestID ¶ added in v0.117.0
Types ¶
type RequestIDKey ¶ added in v0.117.0
type RequestIDKey struct{}
Click to show internal directories.
Click to hide internal directories.