httplog

package
v4.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: MIT Imports: 8 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 New

func New(logger *logger.Logger) *Logger

New wraps a logger to return our httplog wrapper type.

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