Documentation
¶
Overview ¶
Package loggers provides routines for creating weblogs.Logger implementations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApacheUser ¶
ApacheUser formats user info in a request in apache style. That is missing or empty user name is formatted as '-'
Types ¶
type Capture ¶
type Capture struct {
// The underlying ResponseWriter
http.ResponseWriter
// contains filtered or unexported fields
}
Capture provides a basic capture of a response
func (*Capture) WriteHeader ¶
type Snapshot ¶
type Snapshot struct {
// Copied from Request.RemoteAddr
RemoteAddr string
// Copied from Request.Method
Method string
// Copied from Request.Proto
Proto string
// Copied from Request.URL
URL *url.URL
// The http referer
Referer string
// The user agent
UserAgent string
}
Snapshot provides a basic snapshot of a request.
func NewSnapshot ¶
Click to show internal directories.
Click to hide internal directories.