You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
portainer/api/http/logger.go

20 lines
302 B

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
}