logger: github.com/gohttp/logger Index | Files | Directories

package logger

import "github.com/gohttp/logger"

Index

Package Files

logger.go

func New Uses

func New() func(http.Handler) http.Handler

New logger middleware.

func NewLogger Uses

func NewLogger(log *log.Logger) func(http.Handler) http.Handler

NewLogger logger middleware with the given logger.

type Logger Uses

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

Logger middleware.

func (*Logger) ServeHTTP Uses

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

ServeHTTP implementation.

func (*Logger) SetLogger Uses

func (l *Logger) SetLogger(log *log.Logger)

SetLogger sets the logger to `log`.

Directories

PathSynopsis
examples

Package logger imports 4 packages (graph) and is imported by 8 packages. Updated 2016-07-20. Refresh now. Tools for package owners.