httplog

package
v2.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger logger.Logger

Logger is a typedef for logger.Logger to allow it to implement the middleware.Logger interface -- allowing use in the middleware package.

func (*Logger) LogHTTPError

func (l *Logger) LogHTTPError(r *http.Request, status string, code int, err error)

func (*Logger) LogPanic

func (l *Logger) LogPanic(r *http.Request, i interface{}, stack *runtime.Frames)

func (*Logger) LogRequest

func (l *Logger) LogRequest(r *http.Request, code int, latency time.Duration)

Jump to

Keyboard shortcuts

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