Documentation
¶
Index ¶
- func FromContext(ctx context.Context) zerolog.Logger
- func LogRequest(nextHandler httprouter.Handle, extras ...ExtraField) httprouter.Handle
- func RequestIdFromContext(ctx context.Context) string
- func WithLogger(ctx context.Context, logger zerolog.Logger) context.Context
- func WithRequestId(ctx context.Context, requestId string) context.Context
- type ExtraField
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogRequest ¶
func LogRequest(nextHandler httprouter.Handle, extras ...ExtraField) httprouter.Handle
func RequestIdFromContext ¶
Types ¶
type ExtraField ¶
Click to show internal directories.
Click to hide internal directories.