logreq

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(log *zap.Logger, skipper func(*http.Request) bool) func(http.Handler) http.Handler

New creates a middleware for http.ServeMux that logs every incoming request.

The skipper function should return true if the request should be skipped. It's ok to pass nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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