Documentation
¶
Overview ¶
Package log provides logging instrumentation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HTTPTraceTransaction ¶
HTTPTraceTransaction adds trace transaction info to request context.
Types ¶
type HTTPRecover ¶
type HTTPRecover struct {
Logger ctxd.Logger
FieldNames ctxd.FieldNames
PrintPanic bool
ExposePanic bool
OnPanic []func(ctx context.Context, rcv interface{}, stack []byte)
}
HTTPRecover logs http request and response details and recovers from panics.
func (HTTPRecover) Middleware ¶
func (mw HTTPRecover) Middleware() func(handler http.Handler) http.Handler
Middleware wraps http handler.
Click to show internal directories.
Click to hide internal directories.