log

package
v0.0.0-...-430806f Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2013 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package log decorates any http handler with a Common Log Format logger

Index

Constants

View Source
const (
	UseXForwardedAddress = 1 << iota
)

Variables

This section is empty.

Functions

func DefaultCommonLogHandler

func DefaultCommonLogHandler(h http.Handler, flags_arr ...int) http.Handler

flags_arr is so that no code is broken by an API change

func NewCommonLogHandler

func NewCommonLogHandler(logger *log.Logger, h http.Handler, flags_arr ...int) http.Handler

Types

type CommonLogHandler

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

func (*CommonLogHandler) ServeHTTP

func (lh *CommonLogHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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