logging

package
v0.3.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyRequestLogger key = iota
)

Variables

This section is empty.

Functions

func LoggerFromCtx

func LoggerFromCtx(ctx context.Context) zerolog.Logger

func PeekBody added in v0.2.0

func PeekBody(r *http.Request) ([]byte, error)

Types

type MW added in v0.2.0

type MW struct{}

func (MW) Shutdown added in v0.2.0

func (mw MW) Shutdown()

func (MW) Wrap added in v0.2.0

func (mw MW) Wrap(next http.Handler) http.Handler

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL