slowlog

package
v2.27.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Client

func Client(logger log.Logger, opts ...Option) middleware.Middleware

Client returns a middleware that logs slow requests from the client.

func Server

func Server(logger log.Logger, opts ...Option) middleware.Middleware

Server returns a middleware that logs slow requests from the server.

Types

type Option

type Option func(*options)

func WithThreshold

func WithThreshold(threshold time.Duration) Option

type Redacter

type Redacter interface {
	Redact() string
}

Redacter defines how to log an object

Jump to

Keyboard shortcuts

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