logger

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoggerStandardMiddleware

func LoggerStandardMiddleware(logger *slog.Logger, config Config) func(http.Handler) http.Handler

Types

type Config

type Config struct {
	Level        slog.Level `conf:"level"`
	RequestBody  bool       `conf:"request_body"`
	ResponseBody bool       `conf:"response_body"`
	IgnorePaths  []string   `conf:"ignore_paths"`
}

Jump to

Keyboard shortcuts

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