Minor refactor as requested in PR comments

This commit is contained in:
David Tootill 2016-04-28 10:53:02 +00:00
parent 8bac454792
commit bf1f6f663a
4 changed files with 27 additions and 37 deletions

View file

@ -1,10 +1,5 @@
package middlewares
/*
Middleware Logger writes each request and its response to the access log.
It gets some information from the logInfoResponseWriter set up by previous middleware.
*/
import (
"fmt"
log "github.com/Sirupsen/logrus"
@ -23,7 +18,10 @@ const (
loggerReqidHeader = "X-Traefik-Reqid"
)
// Logger holds the File defining the access log
/*
Middleware Logger writes each request and its response to the access log.
It gets some information from the logInfoResponseWriter set up by previous middleware.
*/
type Logger struct {
file *os.File
}