httplog

package
v1.50.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2025 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Log

func Log(logger log.Logger, logBody bool) endpoint.LogMiddleware

func LogWithOptions

func LogWithOptions(logger log.Logger, opts ...Option) endpoint.LogMiddleware

func Noop

func Noop() endpoint.LogMiddleware

Types

type Option

type Option func(cfg *logConfig)

func WithContentTypes

func WithContentTypes(logBodyContentTypes []string) Option

func WithLogBody

func WithLogBody(logBody bool) Option

Shortcut for logResponseBody and logRequestBody

func WithLogRequestBody

func WithLogRequestBody(logRequestBody bool) Option

func WithLogResponseBody

func WithLogResponseBody(logResponseBody bool) Option

Jump to

Keyboard shortcuts

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