mirror of https://github.com/portainer/portainer
20 lines
302 B
Go
20 lines
302 B
Go
package http
|
|
|
|
import (
|
|
"log"
|
|
|
|
zlog "github.com/rs/zerolog/log"
|
|
)
|
|
|
|
type httpLogger struct{}
|
|
|
|
func NewHTTPLogger() *log.Logger {
|
|
return log.New(&httpLogger{}, "", 0)
|
|
}
|
|
|
|
func (l *httpLogger) Write(data []byte) (int, error) {
|
|
zlog.Debug().CallerSkipFrame(3).Msg(string(data))
|
|
|
|
return len(data), nil
|
|
}
|