log

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2015 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package log implements basic but useful request (access) logging middleware.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

New instantiates a new instance of logging middleware.

Types

type LogRule

type LogRule struct {
	PathScope  string
	OutputFile string
	Format     string
	Log        *log.Logger
}

type Logger

type Logger struct {
	Next  middleware.Handler
	Rules []LogRule
}

func (Logger) ServeHTTP

func (l Logger) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, error)

Jump to

Keyboard shortcuts

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