Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPLogger ¶
type HTTPLogger struct {
// contains filtered or unexported fields
}
HTTPLogger wraps the Go-Kit Logger to return a logger which implements a ServerFinalizerFunc. The ServerFinalizerFunc can be passed to finalizer.Middleware or a Go-Kit Server to create a structured HTTP Logger.
func NewHTTPLogger ¶
func NewHTTPLogger(logger log.Logger) *HTTPLogger
NewHTTPLogger returns a Logger from a Go-Kit Logger.
func (*HTTPLogger) LoggingFinalizer ¶
LoggingFinalizer is a finalizer.ServerFinalizerFunc which logs information about a completed HTTP Request.
func (*HTTPLogger) Middleware ¶
func (l *HTTPLogger) Middleware(next http.Handler) http.Handler
Middleware returns creates an HTTP logging middleware using LoggingFinalizer.
Click to show internal directories.
Click to hide internal directories.