http

package
v0.17.2 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package http implements logging primitives for the http package

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RequestLogger

type RequestLogger struct {
	// contains filtered or unexported fields
}

RequestLogger logs requests

func NewRequestLogger

func NewRequestLogger(logger log.Logger) *RequestLogger

NewRequestLogger creates a new RequestLogger

func (*RequestLogger) Error

func (l *RequestLogger) Error(r *http.Request, err error)

Error will log a request error

Jump to

Keyboard shortcuts

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